This commit is contained in:
Mark Qvist 2021-10-07 21:04:11 +02:00
parent 63df56d5b1
commit 3bb90941a3
3 changed files with 12 additions and 3 deletions

View File

@ -279,9 +279,14 @@ class NomadNetworkApp:
RNS.log("Could not autoselect a prepagation node! LXMF propagation will not be available until a trusted node announces on the network.", RNS.LOG_WARNING) RNS.log("Could not autoselect a prepagation node! LXMF propagation will not be available until a trusted node announces on the network.", RNS.LOG_WARNING)
else: else:
node_identity = RNS.Identity.recall(selected_node.source_hash) node_identity = RNS.Identity.recall(selected_node.source_hash)
if node_identity != None:
propagation_hash = RNS.Destination.hash_from_name_and_identity("lxmf.propagation", node_identity) propagation_hash = RNS.Destination.hash_from_name_and_identity("lxmf.propagation", node_identity)
RNS.log("Selecting "+selected_node.display_name+" "+RNS.prettyhexrep(propagation_hash)+" as default LXMF propagation node", RNS.LOG_INFO) RNS.log("Selecting "+selected_node.display_name+" "+RNS.prettyhexrep(propagation_hash)+" as default LXMF propagation node", RNS.LOG_INFO)
self.message_router.set_outbound_propagation_node(propagation_hash) self.message_router.set_outbound_propagation_node(propagation_hash)
else:
RNS.log("Could not recall identity for autoselected LXMF propagation node "+RNS.prettyhexrep(selected_node.source_hash), RNS.LOG_WARNING)
RNS.log("LXMF propagation will not be available until a trusted node announces on the network.", RNS.LOG_WARNING)
def save_peer_settings(self): def save_peer_settings(self):

View File

@ -33,6 +33,7 @@ THEMES = {
("msg_header_ok", "black", "light green", "standout", "#111", "#6b2"), ("msg_header_ok", "black", "light green", "standout", "#111", "#6b2"),
("msg_header_caution", "black", "yellow", "standout", "#111", "#fd3"), ("msg_header_caution", "black", "yellow", "standout", "#111", "#fd3"),
("msg_header_sent", "black", "light gray", "standout", "#111", "#ddd"), ("msg_header_sent", "black", "light gray", "standout", "#111", "#ddd"),
("msg_header_propagated", "black", "light blue", "standout", "#111", "#28b"),
("msg_header_delivered", "black", "light blue", "standout", "#111", "#28b"), ("msg_header_delivered", "black", "light blue", "standout", "#111", "#28b"),
("msg_header_failed", "black", "dark gray", "standout", "#000", "#777"), ("msg_header_failed", "black", "dark gray", "standout", "#000", "#777"),
("msg_warning_untrusted", "black", "dark red", "standout", "#111", "dark red"), ("msg_warning_untrusted", "black", "dark red", "standout", "#111", "dark red"),

View File

@ -813,6 +813,9 @@ class LXMessageWidget(urwid.WidgetWrap):
elif message.lxm.state == LXMF.LXMessage.FAILED: elif message.lxm.state == LXMF.LXMessage.FAILED:
header_style = "msg_header_failed" header_style = "msg_header_failed"
title_string = g["cross"]+" "+title_string title_string = g["cross"]+" "+title_string
elif message.lxm.method == LXMF.LXMessage.PROPAGATED and message.lxm.state == LXMF.LXMessage.SENT:
header_style = "msg_header_propagated"
title_string = g["sent"]+" "+title_string
elif message.lxm.state == LXMF.LXMessage.SENT: elif message.lxm.state == LXMF.LXMessage.SENT:
header_style = "msg_header_sent" header_style = "msg_header_sent"
title_string = g["sent"]+" "+title_string title_string = g["sent"]+" "+title_string