parent
51d753c131
commit
f2f3b9eaed
|
@ -2605,6 +2605,16 @@ typedef enum : NSUInteger {
|
|||
{
|
||||
OWSAssertIsOnMainThread();
|
||||
|
||||
NSIndexPath *_Nullable indexPathOfUnreadIndicator = [self indexPathOfUnreadMessagesIndicator];
|
||||
if (indexPathOfUnreadIndicator) {
|
||||
ConversationViewItem *oldIndicatorItem = [self viewItemForIndex:indexPathOfUnreadIndicator.row];
|
||||
OWSAssert(oldIndicatorItem);
|
||||
|
||||
oldIndicatorItem.unreadIndicator = nil;
|
||||
|
||||
[self.collectionView reloadItemsAtIndexPaths:@[ indexPathOfUnreadIndicator ]];
|
||||
}
|
||||
|
||||
if (self.hasClearedUnreadMessagesIndicator) {
|
||||
// ensureDynamicInteractionsForThread is somewhat expensive
|
||||
// so we don't want to call it unnecessarily.
|
||||
|
|
Loading…
Reference in New Issue