summaryrefslogtreecommitdiff
path: root/Juick/Views
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-04-26 18:53:09 +0300
committerGravatar Vitaly Takmazov2023-04-26 18:53:09 +0300
commit9ca85a0132ed9d33dac586e05a048ffcff9b7843 (patch)
tree1a8dab48559fb05c35628247af40d9779beb2715 /Juick/Views
parent0ceb9ab7775d259eacad4be86db160740577c850 (diff)
Display user premium status
Diffstat (limited to 'Juick/Views')
-rw-r--r--Juick/Views/MessageCell.m6
1 files changed, 5 insertions, 1 deletions
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];