From 9ca85a0132ed9d33dac586e05a048ffcff9b7843 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 26 Apr 2023 18:53:09 +0300 Subject: Display user premium status --- Juick/Views/MessageCell.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Juick/Views/MessageCell.m') diff --git a/Juick/Views/MessageCell.m b/Juick/Views/MessageCell.m index ec2c07b..ceb2ac5 100644 --- a/Juick/Views/MessageCell.m +++ b/Juick/Views/MessageCell.m @@ -92,7 +92,11 @@ const NSString *unreadMarker = @"●"; self.attachmentHeight.constant = 0; self.attach.image = nil; } - self.title.text = msg.user.uname; + if (msg.user.premium) { + self.title.text = [NSString stringWithFormat:@"%@ ☆", msg.user.uname]; + } else { + self.title.text = msg.user.uname; + } self.timestamp.text = [[[AppDelegate shared].sharedDateFormatter dateFromString:msg.timestamp] timeAgo]; NSUInteger count = [msg.repliesCount unsignedIntegerValue]; -- cgit v1.2.3