From bac1d59c5df240eb87c2de74a8824a646f86d3b3 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 10 Jan 2026 00:27:43 +0100 Subject: [PATCH] Fixed attachment messages with no text content not displaying in user interface --- sbapp/sideband/core.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index 7d58d4d..fe8bcbf 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -3097,7 +3097,13 @@ class SidebandCore(): else: RNS.log("Received telemetry stream field with no data: "+str(lxm.fields[LXMF.FIELD_TELEMETRY_STREAM]), RNS.LOG_DEBUG) - if own_command or len(lxm.content) != 0 or len(lxm.title) != 0: + attach_msg = False + if lxm.fields != None and len(lxm.fields) > 0: + if LXMF.FIELD_IMAGE in lxm.fields: attach_msg = True + if LXMF.FIELD_AUDIO in lxm.fields: attach_msg = True + if LXMF.FIELD_FILE_ATTACHMENTS in lxm.fields: attach_msg = True + + if own_command or len(lxm.content) != 0 or len(lxm.title) != 0 or attach_msg: with self.db_lock: db = self.__db_connect() dbc = db.cursor()