mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-29 14:38:45 +03:00
isReadMarkerMoreRecent(): use helper to properly compare chunks
Change-Id: I878b8145d3a9c85ea815f369e5d8f810343c8f62
This commit is contained in:
parent
6aabb38c3b
commit
24133ba7b5
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
|
val eventToCheckIndex = eventToCheck?.displayIndex ?: Int.MAX_VALUE
|
||||||
eventToCheckIndex <= readMarkerIndex
|
eventToCheckIndex <= readMarkerIndex
|
||||||
} else {
|
} else {
|
||||||
eventToCheckChunk?.isLastForward == false && readMarkerChunk?.isLastForward == true
|
eventToCheckChunk != null && readMarkerChunk?.isMoreRecentThan(eventToCheckChunk) == true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue