Display message size in message details

This commit is contained in:
Mark Qvist 2024-09-08 15:17:42 +02:00
parent 12ddf61436
commit 5f6c4c3bea

View File

@ -115,6 +115,9 @@ class Messages():
d_text = "" d_text = ""
if "lxm" in msg and msg["lxm"] != None: if "lxm" in msg and msg["lxm"] != None:
size_str = RNS.prettysize(msg["lxm"].packed_size)
d_text += f"[size={ss}][b]Message size[/b] {size_str}[/size]\n"
if msg["lxm"].signature_validated: if msg["lxm"].signature_validated:
d_text += f"[size={ss}][b]Signature[/b] validated successfully[/size]\n" d_text += f"[size={ss}][b]Signature[/b] validated successfully[/size]\n"
else: else: