fix mark as read

This commit is contained in:
Ryan ZHAO 2020-08-05 16:55:37 +10:00
parent 249628e64a
commit 381cf10dce
1 changed files with 4 additions and 0 deletions

View File

@ -3617,6 +3617,10 @@ typedef enum : NSUInteger {
self.scrollDownButton.hidden = YES;
self.hasUnreadMessages = NO;
if (lastVisibleViewItem != NULL && self.lastVisibleSortId > 0) {
[OWSReadReceiptManager.sharedManager markAsReadLocallyBeforeSortId:self.lastVisibleSortId thread:self.thread];
}
}
- (void)updateLastVisibleSortId