Send dequeue download mutation response (#1218)
Response was never sent due to incorrect updates filter condition
This commit is contained in:
@@ -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() },
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user