mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
reload cell after removing unread indicator
// FREEBIE
This commit is contained in:
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 a new issue