Fixed adding conversation with unknown peer

This commit is contained in:
Mark Qvist 2021-10-08 09:32:45 +02:00
parent 698b97f78c
commit 71680e7329

View File

@ -146,6 +146,7 @@ class Directory:
self.directory_entries[entry.source_hash] = entry self.directory_entries[entry.source_hash] = entry
identity = RNS.Identity.recall(entry.source_hash) identity = RNS.Identity.recall(entry.source_hash)
if identity != None:
associated_node = RNS.Destination.hash_from_name_and_identity("nomadnetwork.node", identity) associated_node = RNS.Destination.hash_from_name_and_identity("nomadnetwork.node", identity)
if associated_node in self.directory_entries: if associated_node in self.directory_entries:
node_entry = self.directory_entries[associated_node] node_entry = self.directory_entries[associated_node]