summaryrefslogtreecommitdiff
path: root/Juick/Views/ConversationCell.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-18 19:06:12 +0300
committerGravatar Vitaly Takmazov2018-10-18 19:06:12 +0300
commitab1406ff4f2a0414483f24114f4fa9d1bc932e0d (patch)
tree3aac81c326b933f13b0680d84077e65b0f147e17 /Juick/Views/ConversationCell.m
parent675d2bd7c52ef0e191d52784f20f3c35e4b308f6 (diff)
load last message text in pms, fix layout
Diffstat (limited to 'Juick/Views/ConversationCell.m')
-rw-r--r--Juick/Views/ConversationCell.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Juick/Views/ConversationCell.m b/Juick/Views/ConversationCell.m
index ca09cd0..ff5ec2f 100644
--- a/Juick/Views/ConversationCell.m
+++ b/Juick/Views/ConversationCell.m
@@ -19,6 +19,8 @@
-(void) configureWithChat:(Chat *)chat {
self.chatName.textColor = [ColorScheme linkColor];
self.chatName.text = chat.uname;
+ self.lastMessage.text = chat.lastMessageText;
+ self.unreadMarker.hidden = chat.unreadCount > 0;
__weak UIImageView *weakAvatar = self.avatar;
[self.avatar setImageWithURLRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://i.juick.com/a/%d.png", [chat.uid intValue]]]] placeholderImage:nil success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, UIImage * _Nonnull image) {
[UIView transitionWithView:weakAvatar