Fix mark existing duplicate read chapters as read option not working in some cases (mihonapp/mihon#1944)
(cherry picked from commit 9972fa1053d19191871e52d48a9fd56b22fbc708)
This commit is contained in:
parent
3f594fe4a4
commit
a18cc3e6a9
1 changed files with 3 additions and 6 deletions
|
|
@ -743,13 +743,10 @@ class ReaderViewModel @JvmOverloads constructor(
|
|||
// SY -->
|
||||
if (manga?.isEhBasedManga() == true) {
|
||||
viewModelScope.launchNonCancellable {
|
||||
val chapterUpdates = chapterList
|
||||
.filter { it.chapter.source_order > readerChapter.chapter.source_order }
|
||||
val chapterUpdates = unfilteredChapterList
|
||||
.filter { it.sourceOrder > readerChapter.chapter.source_order }
|
||||
.map { chapter ->
|
||||
ChapterUpdate(
|
||||
id = chapter.chapter.id!!,
|
||||
read = true,
|
||||
)
|
||||
ChapterUpdate(id = chapter.id, read = true)
|
||||
}
|
||||
updateChapter.awaitAll(chapterUpdates)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue