mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
stop updating message state if message gets cancelled
This commit is contained in:
parent
d4b204029a
commit
29c062d701
1 changed files with 2 additions and 1 deletions
|
|
@ -2681,9 +2681,10 @@ class ReticulumMeshChat:
|
|||
has_delivered = lxmf_message.state == LXMF.LXMessage.DELIVERED
|
||||
has_propagated = lxmf_message.state == LXMF.LXMessage.SENT and lxmf_message.method == LXMF.LXMessage.PROPAGATED
|
||||
has_failed = lxmf_message.state == LXMF.LXMessage.FAILED
|
||||
is_cancelled = lxmf_message.state == LXMF.LXMessage.CANCELLED
|
||||
|
||||
# check if we should stop updating
|
||||
if has_delivered or has_propagated or has_failed:
|
||||
if has_delivered or has_propagated or has_failed or is_cancelled:
|
||||
should_update_message = False
|
||||
|
||||
# handle an announce received from reticulum, for an audio call address
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue