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

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent f2f3b9eaed
commit 2c3f7db4e4

@ -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

Loading…
Cancel
Save