Return public identity for registered destinations in Identity.recall()

This commit is contained in:
Mark Qvist 2022-10-13 20:43:38 +02:00
parent 5d6c3dd891
commit 60773ceb16
1 changed files with 7 additions and 0 deletions

View File

@ -91,6 +91,13 @@ class Identity:
identity.app_data = identity_data[3]
return identity
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
@staticmethod