summaryrefslogtreecommitdiff
path: root/Juick/Views/MessageCell.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-08-22 00:44:28 +0300
committerGravatar Vitaly Takmazov2016-08-22 00:44:28 +0300
commita74588083c4950e9237dff7a84ccdd129b72c950 (patch)
treee2ac66b8b3028fe09d6046a1ae4c80bcf2f85e14 /Juick/Views/MessageCell.m
parent392e98ba3c4b3e4a01bf475794d23c26e20d654a (diff)
RestKit -> YYModel
Diffstat (limited to 'Juick/Views/MessageCell.m')
-rw-r--r--Juick/Views/MessageCell.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Juick/Views/MessageCell.m b/Juick/Views/MessageCell.m
index 7117052..1ffc1c9 100644
--- a/Juick/Views/MessageCell.m
+++ b/Juick/Views/MessageCell.m
@@ -23,8 +23,8 @@
- (void) setMessage:(Message *)msg {
_message = msg;
- self.avatar.yy_imageURL = [NSURL URLWithString:[NSString stringWithFormat:@"https://i.juick.com/a/%d.png", [msg.userID intValue]]];
- self.title.text = msg.user;
+ self.avatar.yy_imageURL = [NSURL URLWithString:[NSString stringWithFormat:@"https://i.juick.com/a/%d.png", [msg.user.uid intValue]]];
+ self.title.text = msg.user.uname;
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss";
[formatter setTimeZone:[NSTimeZone timeZoneWithName:@"UTC"]];