Keep downloads in excluded categories when marking them read (#3558)

Closes #3558
Closes #3130
Fixes #1521
This commit is contained in:
mliem2k
2026-10-10 17:36:19 +06:00
committed by AntsyLich
parent 40f552981a
commit 785f4fd1ed
@@ -49,6 +49,9 @@ class SetReadStatus(
if (read && downloadPreferences.removeAfterMarkedAsRead.get()) {
chaptersToUpdate
// Chapters here still carry their pre-update read state; downstream
// deletion filtering (excluded categories) relies on the new state.
.map { it.copy(read = true) }
.groupBy { it.mangaId }
.forEach { (mangaId, chapters) ->
deleteDownload.awaitAll(