diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt index d1f6760b5..3e0ea3201 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt @@ -172,16 +172,17 @@ class ReaderViewModel( } } else -> chapters - }.run { - if (readerPreferences.skipDupe().get()) { - removeDuplicates(selectedChapter) - } else { - this - } } chaptersForReader .sortedWith(getChapterSort(manga, sortDescending = false)) + .run { + if (readerPreferences.skipDupe().get()) { + removeDuplicates(selectedChapter) + } else { + this + } + } .map { it.toDbChapter() } .map(::ReaderChapter) }