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 7d329aaac2
commit 5543d8ee18

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];
}
}
}