Updated message encryption descriptions

This commit is contained in:
Mark Qvist 2024-09-08 17:50:04 +02:00
parent 5f6c4c3bea
commit a813e84ff5

View File

@ -138,6 +138,11 @@ class Messages():
if msg["extras"] != None and "ratchet_id" in msg["extras"]: if msg["extras"] != None and "ratchet_id" in msg["extras"]:
r_str = RNS.prettyhexrep(msg["extras"]["ratchet_id"]) r_str = RNS.prettyhexrep(msg["extras"]["ratchet_id"])
d_text += f"[size={ss}][b]Encrypted[/b] with {ratchet_method}ratchet {r_str}[/size]\n" d_text += f"[size={ss}][b]Encrypted[/b] with {ratchet_method}ratchet {r_str}[/size]\n"
else:
if msg["method"] == LXMF.LXMessage.OPPORTUNISTIC or msg["method"] == LXMF.LXMessage.PROPAGATED:
d_text += f"[size={ss}][b]Encrypted[/b] with your identity key[/size]\n"
else:
d_text += f"[size={ss}][b]Encryption[/b] status unknown[/size]\n"
if msg["extras"] != None and "stamp_checked" in msg["extras"]: if msg["extras"] != None and "stamp_checked" in msg["extras"]:
valid_str = " is not valid" valid_str = " is not valid"