Only add one 'incoming message' unread indicator per foreground.

// FREEBIE
This commit is contained in:
Michael Kirk 2018-07-16 15:09:50 -06:00
parent f2f3b9eaed
commit 2c3f7db4e4
1 changed files with 1 additions and 1 deletions

View File

@ -4922,7 +4922,7 @@ typedef enum : NSUInteger {
// unread indicator exists yet on dynamicInteractions.
BOOL isItemUnread = ([viewItem.interaction conformsToProtocol:@protocol(OWSReadTracking)]
&& !((id<OWSReadTracking>)viewItem.interaction).wasRead);
if (isItemUnread && !unreadIndicator && !hasPlacedUnreadIndicator) {
if (isItemUnread && !unreadIndicator && !hasPlacedUnreadIndicator && !self.hasClearedUnreadMessagesIndicator) {
unreadIndicator =
[[OWSUnreadIndicator alloc] initUnreadIndicatorWithTimestamp:viewItem.interaction.timestamp