Send dequeue download mutation response (#1218)

Response was never sent due to incorrect updates filter condition
This commit is contained in:
schroda
2025-01-02 03:26:01 +01:00
committed by GitHub
parent de942440e3
commit 1d1535dc55

View File

@@ -166,8 +166,8 @@ class DownloadMutation {
DownloadStatus( DownloadStatus(
DownloadManager.updates DownloadManager.updates
.first { .first {
it.updates.none { it.updates.any {
it.downloadChapter.chapter.id in chapters && it.type != DEQUEUED it.downloadChapter.chapter.id in chapters && it.type == DEQUEUED
} }
}.let { DownloadManager.getStatus() }, }.let { DownloadManager.getStatus() },
) )
@@ -201,8 +201,8 @@ class DownloadMutation {
DownloadStatus( DownloadStatus(
DownloadManager.updates DownloadManager.updates
.first { .first {
it.updates.none { it.updates.any {
it.downloadChapter.chapter.id == chapter && it.type != DEQUEUED it.downloadChapter.chapter.id == chapter && it.type == DEQUEUED
} }
}.let { DownloadManager.getStatus() }, }.let { DownloadManager.getStatus() },
) )