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