mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-11-25 09:23:07 -05:00
Fixed adding conversation with unknown peer
This commit is contained in:
parent
698b97f78c
commit
71680e7329
1 changed files with 5 additions and 4 deletions
|
|
@ -146,10 +146,11 @@ 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)
|
||||||
associated_node = RNS.Destination.hash_from_name_and_identity("nomadnetwork.node", identity)
|
if identity != None:
|
||||||
if associated_node in self.directory_entries:
|
associated_node = RNS.Destination.hash_from_name_and_identity("nomadnetwork.node", identity)
|
||||||
node_entry = self.directory_entries[associated_node]
|
if associated_node in self.directory_entries:
|
||||||
node_entry.trust_level = entry.trust_level
|
node_entry = self.directory_entries[associated_node]
|
||||||
|
node_entry.trust_level = entry.trust_level
|
||||||
|
|
||||||
def forget(self, source_hash):
|
def forget(self, source_hash):
|
||||||
if source_hash in self.directory_entries:
|
if source_hash in self.directory_entries:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue