Merge a97de2abf64adf468ec08b36cb181f52ef8cc09a into 75864a705ea0b913d517a5f3640747f8709e9e53

This commit is contained in:
Ivan FB 2026-04-30 19:23:27 +02:00 committed by GitHub
commit a51e56c64d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.} =