Check message db return is not none

This commit is contained in:
Mark Qvist 2024-09-17 14:24:56 +02:00
parent 69ab910590
commit 074bb4aa4e
1 changed files with 84 additions and 83 deletions

View File

@ -249,6 +249,7 @@ class Messages():
if m["state"] == LXMF.LXMessage.SENDING or m["state"] == LXMF.LXMessage.OUTBOUND or m["state"] == LXMF.LXMessage.SENT:
msg = self.app.sideband.message(m["hash"])
if msg != None:
delivery_syms = ""
# if msg["extras"] != None and "ratchet_id" in m["extras"]:
# delivery_syms += " ⚙️"