mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix assert for empty thread
// FREEBIE
This commit is contained in:
parent
5faeed4d59
commit
e77a7e09bb
|
@ -4075,6 +4075,10 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
|
|||
|
||||
uint64_t lastVisibleTimestamp = self.lastVisibleTimestamp;
|
||||
|
||||
if (lastVisibleTimestamp == 0) {
|
||||
// No visible messages yet. New Thread.
|
||||
return;
|
||||
}
|
||||
[OWSReadReceiptManager.sharedManager markAsReadLocallyBeforeTimestamp:lastVisibleTimestamp thread:self.thread];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue