Fix for duplicate read

This commit is contained in:
Jobobby04 2024-03-02 15:34:28 -05:00
parent 97f22c500b
commit 6c563d7619

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 {