Add a small increment to chapter number before comparison to fix progress sync issues for Suwayomi (#2675)

Due to a `Float->Double->Float` conversion somewhere inside Mihon, the
tracker sees 2.1 as 2.0999999046325684, which means this filter ignores
the 2.1 chapter (which we just tried to mark as read). This small
epsilon is small enough to never bother any serious usage, but large
enough to ignore any such conversion errors.

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
(cherry picked from commit bd5c4d48f980d2d3dcc1112fe499dba17ef8e507)

# Conflicts:
#	CHANGELOG.md
This commit is contained in:
Constantin Piber
2026-01-07 09:36:37 +01:00
committed by Jobobby04
parent 46c1c6463a
commit 14c91da6b3
@@ -115,7 +115,7 @@ class SuwayomiApi(private val trackId: Long) {
.data
.entry
.nodes
.mapNotNull { n -> n.id.takeIf { n.chapterNumber <= track.last_chapter_read } }
.mapNotNull { n -> n.id.takeIf { n.chapterNumber <= track.last_chapter_read + 0.001 } }
}
val markQuery = if (deleteDownloadsOnServer) {