mirror of
https://github.com/markqvist/Sideband.git
synced 2024-10-01 03:15:37 -04:00
Updated message encryption descriptions
This commit is contained in:
parent
5f6c4c3bea
commit
a813e84ff5
@ -123,21 +123,26 @@ class Messages():
|
|||||||
else:
|
else:
|
||||||
d_text += f"[size={ss}][b]Signature[/b] is invalid[/size]\n"
|
d_text += f"[size={ss}][b]Signature[/b] is invalid[/size]\n"
|
||||||
|
|
||||||
ratchet_method = ""
|
ratchet_method = ""
|
||||||
if "method" in msg:
|
if "method" in msg:
|
||||||
if msg["method"] == LXMF.LXMessage.UNKNOWN:
|
if msg["method"] == LXMF.LXMessage.UNKNOWN:
|
||||||
d_text += f"[size={ss}][b]Delivered[/b] via unknown method[/size]\n"
|
d_text += f"[size={ss}][b]Delivered[/b] via unknown method[/size]\n"
|
||||||
if msg["method"] == LXMF.LXMessage.OPPORTUNISTIC:
|
if msg["method"] == LXMF.LXMessage.OPPORTUNISTIC:
|
||||||
d_text += f"[size={ss}][b]Delivered[/b] opportunistically[/size]\n"
|
d_text += f"[size={ss}][b]Delivered[/b] opportunistically[/size]\n"
|
||||||
if msg["method"] == LXMF.LXMessage.DIRECT:
|
if msg["method"] == LXMF.LXMessage.DIRECT:
|
||||||
ratchet_method = "link "
|
ratchet_method = "link "
|
||||||
d_text += f"[size={ss}][b]Delivered[/b] over direct link[/size]\n"
|
d_text += f"[size={ss}][b]Delivered[/b] over direct link[/size]\n"
|
||||||
if msg["method"] == LXMF.LXMessage.PROPAGATED:
|
if msg["method"] == LXMF.LXMessage.PROPAGATED:
|
||||||
d_text += f"[size={ss}][b]Delivered[/b] to propagation network[/size]\n"
|
d_text += f"[size={ss}][b]Delivered[/b] to propagation network[/size]\n"
|
||||||
|
|
||||||
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user