mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Max out the unread count at 99.
// FREEBIE
This commit is contained in:
parent
dc69034b64
commit
5796bbd858
|
@ -3812,7 +3812,8 @@ typedef enum : NSUInteger {
|
|||
- (void)updateBackButtonUnreadCount
|
||||
{
|
||||
AssertIsOnMainThread();
|
||||
self.backButtonUnreadCount = [self.messagesManager unreadMessagesCountExcept:self.thread];
|
||||
// Max out the unread count at 99.
|
||||
self.backButtonUnreadCount = MIN((NSUInteger)99, [self.messagesManager unreadMessagesCountExcept:self.thread]);
|
||||
}
|
||||
|
||||
- (void)setBackButtonUnreadCount:(NSUInteger)unreadCount
|
||||
|
|
|
@ -117,6 +117,8 @@ const NSUInteger kContactPictureViewDiameter = 52;
|
|||
|
||||
NSAttributedString *attributedDate = [self dateAttributedString:thread.lastMessageDate];
|
||||
NSUInteger unreadCount = [[TSMessagesManager sharedManager] unreadMessagesInThread:thread];
|
||||
// Max out the per-thread unread count at 99.
|
||||
unreadCount = MIN((NSUInteger)99, unreadCount);
|
||||
|
||||
self.nameLabel.text = name;
|
||||
self.snippetLabel.attributedText = snippetText;
|
||||
|
|
Loading…
Reference in a new issue