# HG changeset patch # User Goffi # Date 1585299239 -3600 # Node ID c161ff21ca7c87031b334a25a4f5ea84881a4e37 # Parent 78fea49735c555977cda00734991a6164b0e2032 core (memory/encryption): use utils.asDeferred for trust UI, so async coroutines can be used diff -r 78fea49735c5 -r c161ff21ca7c sat/memory/encryption.py --- a/sat/memory/encryption.py Fri Mar 27 09:53:00 2020 +0100 +++ b/sat/memory/encryption.py Fri Mar 27 09:53:59 2020 +0100 @@ -379,7 +379,7 @@ raise NotImplementedError( "Encryption plugin doesn't handle trust management UI") else: - return defer.maybeDeferred(get_trust_ui, self.client, entity_jid) + return utils.asDeferred(get_trust_ui, self.client, entity_jid) ## Menus ##