From 60773ceb16c636022d5da49deef3db066c806cef Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 13 Oct 2022 20:43:38 +0200 Subject: [PATCH] Return public identity for registered destinations in Identity.recall() --- RNS/Identity.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/RNS/Identity.py b/RNS/Identity.py index 105759f..3c814d5 100644 --- a/RNS/Identity.py +++ b/RNS/Identity.py @@ -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