Skip to content

Commit

Permalink
Update ReaderViewModel.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Riztard committed Feb 18, 2024
1 parent 2be526c commit 1f3897d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ class ReaderViewModel @JvmOverloads constructor(
// SY -->
if (readerPreferences.markReadDupe().get()) {
getChaptersByMangaId.await(manga!!.id).sortedByDescending { it.sourceOrder }
.filter { it.chapterNumber >= 0 && !it.read && it.chapterNumber.toFloat() == readerChapter.chapter.chapter_number }
.filter { it.read.not() && it.chapterNumber.toFloat() == readerChapter.chapter.chapter_number }
.also { setReadStatus.await(true, *it.toTypedArray()) }
}
if (manga?.isEhBasedManga() == true) {
Expand Down

0 comments on commit 1f3897d

Please sign in to comment.