touch instead of reload to make sure any adjacent bubbles are updated appropriately.

pull/1/head
Michael Kirk 7 years ago
parent 2c3f7db4e4
commit 567f625902

@ -2610,9 +2610,12 @@ typedef enum : NSUInteger {
ConversationViewItem *oldIndicatorItem = [self viewItemForIndex:indexPathOfUnreadIndicator.row];
OWSAssert(oldIndicatorItem);
oldIndicatorItem.unreadIndicator = nil;
[self.collectionView reloadItemsAtIndexPaths:@[ indexPathOfUnreadIndicator ]];
// TODO ideally this would be happening within the *same* transaction that caused the unreadMessageIndicator
// to be cleared.
[self.editingDatabaseConnection
asyncReadWriteWithBlock:^(YapDatabaseReadWriteTransaction *_Nonnull transaction) {
[oldIndicatorItem.interaction touchWithTransaction:transaction];
}];
}
if (self.hasClearedUnreadMessagesIndicator) {

Loading…
Cancel
Save