From abcf06b92174a66983f19faf56c4b638f1ec1fa8 Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Sat, 14 Dec 2024 19:20:23 +0700 Subject: [PATCH] chore: Partial revert --- .../java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt b/app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt index 743052c1ca..e729b8ef5a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt @@ -113,7 +113,7 @@ suspend fun syncChaptersWithSource( // Return if there's nothing to add, delete or change, avoid unnecessary db transactions. if (toAdd.isEmpty() && toDelete.isEmpty() && toChange.isEmpty()) { val newestDate = dbChapters.maxOfOrNull { it.date_upload } ?: 0L - if (newestDate != 0L && newestDate > manga.last_update) { + if (newestDate != 0L && newestDate != manga.last_update) { manga.last_update = newestDate val update = MangaUpdate(manga.id!!, lastUpdate = newestDate) updateManga.await(update)