mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-03 23:58:55 +01:00 
			
		
		
		
	Fix History not being added when restoring backup (#7324)
This commit is contained in:
		@@ -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,
 | 
			
		||||
                            ),
 | 
			
		||||
                        )
 | 
			
		||||
                    }
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user