SyncChaptersWithSource: Fix early exit condition for readded chapters (#7661)
This commit is contained in:
parent
bb5a5ea25f
commit
2a875fe9b8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue