mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
messages sent opportunistically should be set as failed on app start if they didn't successfully deliver
This commit is contained in:
parent
1eef547eb1
commit
0161ee8757
1 changed files with 1 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ class ReticulumMeshChat:
|
|||
# lxmf messages in outbound or sending state should be marked as failed when app starts as they are no longer being processed
|
||||
(database.LxmfMessage.update(state="failed")
|
||||
.where(database.LxmfMessage.state == "outbound")
|
||||
.orwhere((database.LxmfMessage.state == "sent") & (database.LxmfMessage.method == "opportunistic"))
|
||||
.orwhere(database.LxmfMessage.state == "sending").execute())
|
||||
|
||||
# init reticulum
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue