SyncChaptersWithSource: Fix early exit condition for readded chapters (#7661)

This commit is contained in:
AntsyLich 2022-07-31 20:58:55 +06:00 committed by GitHub
parent bb5a5ea25f
commit 2a875fe9b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,7 +139,7 @@ class SyncChaptersWithSource(
var updatedToAdd = toAdd.map { toAddItem -> var updatedToAdd = toAdd.map { toAddItem ->
var chapter = toAddItem.copy(dateFetch = rightNow + itemCount--) var chapter = toAddItem.copy(dateFetch = rightNow + itemCount--)
if (chapter.isRecognizedNumber.not() && chapter.chapterNumber !in deletedChapterNumbers) return@map chapter if (chapter.isRecognizedNumber.not() || chapter.chapterNumber !in deletedChapterNumbers) return@map chapter
if (chapter.chapterNumber in deletedReadChapterNumbers) { if (chapter.chapterNumber in deletedReadChapterNumbers) {
chapter = chapter.copy(read = true) chapter = chapter.copy(read = true)