mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-10-01 03:15:44 -04:00
Return public identity for registered destinations in Identity.recall()
This commit is contained in:
parent
5d6c3dd891
commit
60773ceb16
@ -91,6 +91,13 @@ class Identity:
|
|||||||
identity.app_data = identity_data[3]
|
identity.app_data = identity_data[3]
|
||||||
return identity
|
return identity
|
||||||
else:
|
else:
|
||||||
|
for registered_destination in RNS.Transport.destinations:
|
||||||
|
if destination_hash == registered_destination.hash:
|
||||||
|
identity = Identity(create_keys=False)
|
||||||
|
identity.load_public_key(registered_destination.identity.get_public_key())
|
||||||
|
identity.app_data = None
|
||||||
|
return identity
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user