mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-05-11 21:09:27 +00:00
Merge a97de2abf64adf468ec08b36cb181f52ef8cc09a into 75864a705ea0b913d517a5f3640747f8709e9e53
This commit is contained in:
commit
a51e56c64d
@ -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