Fix for duplicate read

This commit is contained in:
Jobobby04 2024-03-02 15:34:28 -05:00 committed by Cuong M. Tran
parent 61b70cdcbb
commit 84fca4290a
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -404,7 +404,9 @@ class LibraryUpdateJob(private val context: Context, workerParams: WorkerParamet
readChapters.any { it.chapterNumber == chapter.chapterNumber }
}
setReadStatus.await(true, *newReadChapters.toTypedArray())
if (newReadChapters.isNotEmpty()) {
setReadStatus.await(true, *newReadChapters.toTypedArray())
}
this.filterNot { newReadChapters.contains(it) }
} else {