@@ -67,6 +67,7 @@ import kotlinx.coroutines.flow.onEach
67
67
import kotlinx.coroutines.flow.receiveAsFlow
68
68
import kotlinx.coroutines.flow.update
69
69
import kotlinx.coroutines.launch
70
+ import kotlinx.coroutines.runBlocking
70
71
import kotlinx.coroutines.withContext
71
72
import uy.kohesive.injekt.Injekt
72
73
import uy.kohesive.injekt.api.get
@@ -156,6 +157,11 @@ class ReaderViewModel(
156
157
private var finished = false
157
158
private var chapterToDownload: Download ? = null
158
159
160
+ private val unfilteredChapterList by lazy {
161
+ val manga = manga!!
162
+ runBlocking { getChapter.awaitAll(manga, filterScanlators = false ) }
163
+ }
164
+
159
165
private lateinit var chapterList: List <ReaderChapter >
160
166
161
167
private var chapterItems = emptyList<ReaderChapterItem >()
@@ -639,9 +645,8 @@ class ReaderViewModel(
639
645
.contains(LibraryPreferences .MARK_DUPLICATE_READ_CHAPTER_READ_EXISTING )
640
646
if (! markDuplicateAsRead) return
641
647
642
- val duplicateUnreadChapters = chapterList
643
- .mapNotNull {
644
- val chapter = it.chapter
648
+ val duplicateUnreadChapters = unfilteredChapterList
649
+ .mapNotNull { chapter ->
645
650
if (
646
651
! chapter.read &&
647
652
chapter.isRecognizedNumber &&
0 commit comments