mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-03 23:58:55 +01:00 
			
		
		
		
	Fix read duration statistic getting inflated when restoring history
This commit is contained in:
		@@ -328,7 +328,7 @@ class MangaRestorer(
 | 
			
		||||
                readAt = max(item.readAt?.time ?: 0L, dbHistory.last_read?.time ?: 0L)
 | 
			
		||||
                    .takeIf { it > 0L }
 | 
			
		||||
                    ?.let { Date(it) },
 | 
			
		||||
                readDuration = max(item.readDuration, dbHistory.time_read),
 | 
			
		||||
                readDuration = max(item.readDuration, dbHistory.time_read) - dbHistory.time_read,
 | 
			
		||||
            )
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user