summaryrefslogtreecommitdiff
path: root/Juick/Views
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/Views')
-rw-r--r--Juick/Views/ContentLoadingCell.m1
-rw-r--r--Juick/Views/MessageCell.h2
-rw-r--r--Juick/Views/MessageCell.m1
3 files changed, 4 insertions, 0 deletions
diff --git a/Juick/Views/ContentLoadingCell.m b/Juick/Views/ContentLoadingCell.m
index 5ec67b3..90329fa 100644
--- a/Juick/Views/ContentLoadingCell.m
+++ b/Juick/Views/ContentLoadingCell.m
@@ -12,6 +12,7 @@
- (void)awakeFromNib {
[super awakeFromNib];
+ self.userInteractionEnabled = NO;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
diff --git a/Juick/Views/MessageCell.h b/Juick/Views/MessageCell.h
index d9a5533..abb1347 100644
--- a/Juick/Views/MessageCell.h
+++ b/Juick/Views/MessageCell.h
@@ -24,6 +24,8 @@
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *attachmentHeight;
@property (weak, nonatomic) IBOutlet UILabel *summary;
+@property (nonatomic, weak) Message *message;
+
@property (nonatomic, strong) id<MessageCellDelegate> delegate;
- (void) configureWithMessage:(Message *)msg;
diff --git a/Juick/Views/MessageCell.m b/Juick/Views/MessageCell.m
index cf23f62..ffb564a 100644
--- a/Juick/Views/MessageCell.m
+++ b/Juick/Views/MessageCell.m
@@ -30,6 +30,7 @@
}
- (void) configureWithMessage:(Message *)msg {
+ self.message = msg;
self.avatar.image = nil;
__weak UIImageView *weakAvatar = self.avatar;
[self.avatar setImageWithURLRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://i.juick.com/a/%d.png", [msg.user.uid intValue]]]] placeholderImage:nil success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, UIImage * _Nonnull image) {