changeset 3235:c161ff21ca7c

core (memory/encryption): use utils.asDeferred for trust UI, so async coroutines can be used
author Goffi <goffi@goffi.org>
date Fri, 27 Mar 2020 09:53:59 +0100
parents 78fea49735c5
children 9477f3197981
files sat/memory/encryption.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 ##