avoid keeping delivery tasks in propagated state when check store is disabled (#3843)

This commit is contained in:
Ivan FB
2026-05-15 17:39:38 +02:00
committed by GitHub
parent cb35b59f95
commit 34c197c5cd
@@ -225,9 +225,12 @@ 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.} =