Ver Fonte

Fix History not being added when restoring backup (#7324)

Andreas há 2 anos atrás
pai
commit
c5d84b4f24

+ 6 - 4
app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt

@@ -311,10 +311,12 @@ class FullBackupManager(context: Context) : AbstractBackupManager(context) {
                 handler
                     .awaitOneOrNull { chaptersQueries.getChapterByUrl(url) }
                     ?.let {
-                        HistoryUpdate(
-                            chapterId = it._id,
-                            readAt = Date(lastRead),
-                            sessionReadDuration = 0,
+                        toUpdate.add(
+                            HistoryUpdate(
+                                chapterId = it._id,
+                                readAt = Date(lastRead),
+                                sessionReadDuration = 0,
+                            ),
                         )
                     }
             }