isReadMarkerMoreRecent(): use helper to properly compare chunks

This commit is contained in:
SpiritCroc 2022-03-10 20:22:38 +01:00
parent 6c4e404ba1
commit 0564942b0c
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ internal fun isReadMarkerMoreRecent(realmConfiguration: RealmConfiguration,
val eventToCheckIndex = eventToCheck?.displayIndex ?: Int.MAX_VALUE
eventToCheckIndex <= readMarkerIndex
} else {
eventToCheckChunk?.isLastForward == false && readMarkerChunk?.isLastForward == true
eventToCheckChunk != null && readMarkerChunk?.isMoreRecentThan(eventToCheckChunk) == true
}
}
}