瀏覽代碼

Revert last_updated change

arkon 5 年之前
父節點
當前提交
b06189ff95
共有 1 個文件被更改,包括 1 次插入9 次删除
  1. 1 9
      app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt

+ 1 - 9
app/src/main/java/eu/kanade/tachiyomi/util/chapter/ChapterSourceSync.kt

@@ -134,15 +134,7 @@ fun syncChaptersWithSource(
         db.fixChaptersSourceOrder(sourceChapters).executeAsBlocking()
 
         // Set this manga as updated since chapters were changed
-        val newestChapter = db.getChapters(manga).executeAsBlocking().maxBy { it.date_upload }
-        val dateFetch = newestChapter?.date_upload ?: manga.last_update
-        if (dateFetch == 0L) {
-            if (toAdd.isNotEmpty()) {
-                manga.last_update = Date().time
-            }
-        } else {
-            manga.last_update = dateFetch
-        }
+        manga.last_update = Date().time
         db.updateLastUpdated(manga).executeAsBlocking()
     }