From 2a875fe9b8d1e57dcf1e06804d452f6c56b8c089 Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Sun, 31 Jul 2022 20:58:55 +0600 Subject: [PATCH] SyncChaptersWithSource: Fix early exit condition for readded chapters (#7661) --- .../kanade/domain/chapter/interactor/SyncChaptersWithSource.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/domain/chapter/interactor/SyncChaptersWithSource.kt b/app/src/main/java/eu/kanade/domain/chapter/interactor/SyncChaptersWithSource.kt index 3a03227563..71772a85ee 100644 --- a/app/src/main/java/eu/kanade/domain/chapter/interactor/SyncChaptersWithSource.kt +++ b/app/src/main/java/eu/kanade/domain/chapter/interactor/SyncChaptersWithSource.kt @@ -139,7 +139,7 @@ class SyncChaptersWithSource( var updatedToAdd = toAdd.map { toAddItem -> 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) { chapter = chapter.copy(read = true)