Fix History not being added when restoring backup (#7324)
(cherry picked from commit c5d84b4f2408b043b7a74ac2a263e0564f2e4b5a)
This commit is contained in:
parent
791736673f
commit
cad93ce77e
@ -362,10 +362,12 @@ class FullBackupManager(context: Context) : AbstractBackupManager(context) {
|
||||
handler
|
||||
.awaitOneOrNull { chaptersQueries.getChapterByUrl(url) }
|
||||
?.let {
|
||||
toUpdate.add(
|
||||
HistoryUpdate(
|
||||
chapterId = it._id,
|
||||
readAt = Date(lastRead),
|
||||
sessionReadDuration = 0,
|
||||
),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user