mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-02-22 16:09:58 -05:00
Fixed adding conversation with unknown peer
This commit is contained in:
parent
698b97f78c
commit
71680e7329
@ -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…
x
Reference in New Issue
Block a user