Initialise the read marker if it does not exist yet.

Set it to the current read receipt position by default
This commit is contained in:
Giom Foret
2017-06-08 10:30:29 +02:00
parent 37cbeb31dc
commit 33a4897ef1
+7
View File
@@ -3545,6 +3545,13 @@
else
{
self.jumpToLastUnreadBannerContainer.hidden = YES;
// Initialize the read marker if it does not exist yet
if (!self.roomDataSource.room.accountData.readMarkerEventId)
{
// Move the read marker to the current read receipt position by default.
[self.roomDataSource.room forgetReadMarker];
}
}
}