mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 03:16:02 +03:00
Fix updating unread marker if not to latest chunk
SetReadMarkerTask was not updating the read marker when both the old and the new fully read eventId weren't in the last chunk, even when the new one was after the first one. Change-Id: I175b335cf90328f676238ca23e45aa0f91b269c9
This commit is contained in:
parent
4f2931feae
commit
2498da3631
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ internal fun isReadMarkerMoreRecent(realmConfiguration: RealmConfiguration,
|
|||
val eventToCheckIndex = eventToCheck?.displayIndex ?: Int.MAX_VALUE
|
||||
eventToCheckIndex <= readMarkerIndex
|
||||
} else {
|
||||
eventToCheckChunk?.isLastForward == false
|
||||
eventToCheckChunk?.isLastForward == false && readMarkerChunk?.isLastForward == true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue