Fix download ahead while reading functionality (#9640)

Correct condition for downloading next chapter
This commit is contained in:
Denny Rodrigues do Carmo 2023-06-25 15:18:54 -03:00 committed by GitHub
parent 1f618d6634
commit ee684cbef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -473,8 +473,7 @@ class ReaderViewModel(
manga.title,
manga.source,
)
if (!isNextChapterDownloaded) return@launchIO
if (isNextChapterDownloaded) return@launchIO
val chaptersToDownload = getNextChapters.await(manga.id, nextChapter.id!!).run {
if (readerPreferences.skipDupe().get()) {
removeDuplicates(nextChapter.toDomainChapter()!!)