mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-20 21:48:58 -04:00
Save and display stamp status on messages
This commit is contained in:
parent
7ec35db6c9
commit
c6f82a917d
3 changed files with 19 additions and 1 deletions
|
@ -280,6 +280,8 @@ class Messages():
|
|||
has_attachment = False
|
||||
force_markup = False
|
||||
signature_valid = False
|
||||
stamp_valid = False
|
||||
stamp_value = None
|
||||
|
||||
if "lxm" in m and m["lxm"] != None and m["lxm"].signature_validated:
|
||||
signature_valid = True
|
||||
|
@ -290,6 +292,10 @@ class Messages():
|
|||
except Exception as e:
|
||||
pass
|
||||
|
||||
if "extras" in m and m["extras"] != None and "stamp_checked" in m["extras"] and m["extras"]["stamp_checked"] == True:
|
||||
stamp_valid = m["extras"]["stamp_valid"]
|
||||
stamp_value = m["extras"]["stamp_value"]
|
||||
|
||||
if "lxm" in m and m["lxm"] != None and m["lxm"].fields != None and LXMF.FIELD_COMMANDS in m["lxm"].fields:
|
||||
try:
|
||||
commands = m["lxm"].fields[LXMF.FIELD_COMMANDS]
|
||||
|
@ -409,6 +415,8 @@ class Messages():
|
|||
heading_str = titlestr
|
||||
if phy_stats_str != "" and self.app.sideband.config["advanced_stats"]:
|
||||
heading_str += phy_stats_str+"\n"
|
||||
if stamp_valid:
|
||||
txstr += f" [b]Stamp[/b] value is {stamp_value} "
|
||||
|
||||
heading_str += "[b]Sent[/b] "+txstr
|
||||
heading_str += "\n[b]Received[/b] "+rxstr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue