From a74588083c4950e9237dff7a84ccdd129b72c950 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 22 Aug 2016 00:44:28 +0300 Subject: RestKit -> YYModel --- Juick/Views/MessageCell.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Juick/Views') 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"]]; -- cgit v1.2.3