Propagation node identity lookup

This commit is contained in:
Mark Qvist 2021-10-08 13:34:04 +02:00
parent fec4ef5d57
commit cd59f31eba

View File

@ -367,9 +367,16 @@ class ConversationsDisplay():
button_columns = urwid.Columns([("weight", 0.45, sync_button), ("weight", 0.1, urwid.Text("")), ("weight", 0.45, cancel_button)]) button_columns = urwid.Columns([("weight", 0.45, sync_button), ("weight", 0.1, urwid.Text("")), ("weight", 0.45, cancel_button)])
real_sync_button.bc = button_columns real_sync_button.bc = button_columns
pn_ident = None
if self.app.get_default_propagation_node() != None: if self.app.get_default_propagation_node() != None:
pn_hash = self.app.get_default_propagation_node() pn_hash = self.app.get_default_propagation_node()
pn_ident = RNS.Identity.recall(pn_hash) pn_ident = RNS.Identity.recall(pn_hash)
if pn_ident == None:
RNS.log("Propagation node identity is unknown, requesting from network...", RNS.LOG_DEBUG)
RNS.Transport.request_path(pn_hash)
if pn_ident != None:
node_hash = RNS.Destination.hash_from_name_and_identity("nomadnetwork.node", pn_ident) node_hash = RNS.Destination.hash_from_name_and_identity("nomadnetwork.node", pn_ident)
pn_entry = self.app.directory.find(node_hash) pn_entry = self.app.directory.find(node_hash)