Delete duplicate downloaded chapters when they are automatically marked as read (#1252)
This commit is contained in:
parent
7ec14cd9f0
commit
71f2daf8f3
@ -707,7 +707,12 @@ class ReaderViewModel @JvmOverloads constructor(
|
||||
it.chapterNumber.toFloat() == readerChapter.chapter.chapter_number
|
||||
}
|
||||
.ifEmpty { null }
|
||||
?.also { setReadStatus.await(true, *it.toTypedArray()) }
|
||||
?.also {
|
||||
setReadStatus.await(true, *it.toTypedArray())
|
||||
it.forEach { chapter ->
|
||||
deleteChapterIfNeeded(ReaderChapter(chapter))
|
||||
}
|
||||
}
|
||||
}
|
||||
if (manga?.isEhBasedManga() == true) {
|
||||
viewModelScope.launchNonCancellable {
|
||||
|
Loading…
x
Reference in New Issue
Block a user