summaryrefslogtreecommitdiff
path: root/Juick/Views/BubbleMessageCell.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/Views/BubbleMessageCell.m')
-rw-r--r--Juick/Views/BubbleMessageCell.m12
1 files changed, 2 insertions, 10 deletions
diff --git a/Juick/Views/BubbleMessageCell.m b/Juick/Views/BubbleMessageCell.m
index 42b6019..87b482c 100644
--- a/Juick/Views/BubbleMessageCell.m
+++ b/Juick/Views/BubbleMessageCell.m
@@ -25,8 +25,8 @@
-(void) configureWithMessage:(Message *)message isMe:(BOOL)isMe {
self.message.backgroundColor = isMe ? [ColorScheme secondaryBackground] : [ColorScheme mainBackground];
self.message.textColor = isMe ? [UIColor whiteColor] : [ColorScheme textColor];
- self.message.linkAttributes = @{ (id)kCTForegroundColorAttributeName: isMe ? [UIColor whiteColor] : [ColorScheme linkColor],
- (id)kCTUnderlineStyleAttributeName : [NSNumber numberWithInt:NSUnderlineStyleSingle] };
+ self.message.dataDetectorTypes = UIDataDetectorTypeAll;
+ self.message.tintColor = isMe? [UIColor whiteColor] : [ColorScheme linkColor];
self.name.text = message.user.uname;
self.message.text = message.text;
self.unreadMarker.text = @"";
@@ -40,14 +40,6 @@
}
completion:nil];
} failure:nil];
- self.message.enabledTextCheckingTypes = NSTextCheckingTypeLink;
- self.message.clipsToBounds = YES;
- self.message.textInsets = UIEdgeInsetsMake(4.0f, 8.0f, 4.0f, 8.0f);
-}
-
--(void) attributedLabel:(TTTAttributedLabel *)label didSelectLinkWithURL:(NSURL *)url {
- [[UIApplication sharedApplication] openURL:url options:
- @{} completionHandler:nil];
}
@end