Skip to content

Commit

Permalink
isReadMarkerMoreRecent(): use helper to properly compare chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
SpiritCroc committed Mar 11, 2022
1 parent 6c4e404 commit 0564942
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

0 comments on commit 0564942

Please sign in to comment.