From 0161ee87570e255c859635608d9776374a8e50c3 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Thu, 19 Sep 2024 13:06:35 +1200 Subject: [PATCH] messages sent opportunistically should be set as failed on app start if they didn't successfully deliver --- meshchat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/meshchat.py b/meshchat.py index 30bfce7..d795ca6 100644 --- a/meshchat.py +++ b/meshchat.py @@ -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