diff options
Diffstat (limited to 'Juick/Views/MessageCell.m')
-rw-r--r-- | Juick/Views/MessageCell.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Juick/Views/MessageCell.m b/Juick/Views/MessageCell.m index ad1a3a3..f02aa48 100644 --- a/Juick/Views/MessageCell.m +++ b/Juick/Views/MessageCell.m @@ -46,7 +46,7 @@ const NSString *unreadMarker = @"●"; _italicFont = [UIFont fontWithDescriptor:italicFontDescriptor size: 0.0]; } -- (void) configureWithMessage:(Message *)msg { +- (void) configureWithMessage:(Message *)msg selectable:(BOOL)selectable { self.avatar.image = nil; __weak UIImageView *weakAvatar = self.avatar; [[AppDelegate shared].api fetchImageWithURL:[NSURL URLWithString:msg.user.avatar] callback:^(NSData *data) { @@ -101,6 +101,8 @@ const NSString *unreadMarker = @"●"; self.text.attributedText = nil; if (msg.text) { [self.text setHidden:NO]; + [self.text setSelectable:selectable]; + [self.text setUserInteractionEnabled:selectable]; NSMutableAttributedString *txt = [[NSMutableAttributedString alloc] initWithString:msg.text attributes:@{NSFontAttributeName:[UIFont preferredFontForTextStyle:UIFontTextStyleBody], |