mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-05-12 05:19:33 +00:00
avoid keeping delivery tasks in propagated state when check store is disabled
This commit is contained in:
parent
587014e34f
commit
a97de2abf6
@ -225,9 +225,10 @@ proc evaluateAndCleanUp(self: SendService) =
|
||||
it.state != DeliveryState.FailedToDeliver
|
||||
)
|
||||
|
||||
# remove propagated ephemeral messages as no store check is possible
|
||||
# remove propagated messages when no store confirmation will follow
|
||||
self.taskCache.keepItIf(
|
||||
not (it.isEphemeral() and it.state == DeliveryState.SuccessfullyPropagated)
|
||||
not (it.state == DeliveryState.SuccessfullyPropagated and
|
||||
(it.isEphemeral() or not self.checkStoreForMessages))
|
||||
)
|
||||
|
||||
proc trySendMessages(self: SendService) {.async.} =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user