diff sat/memory/encryption.py @ 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 e756e0eb1be4
children be6d91572633
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 ##