diff libervia/backend/memory/encryption.py @ 4341:e9971a4b0627

remove uses of twisted.internet.defer.returnValue This function has been deprecated in Twisted 24.7.0.
author Povilas Kanapickas <povilas@radix.lt>
date Wed, 11 Dec 2024 01:17:09 +0200
parents 0d7bb4df2343
children 17fa953c8cd7
line wrap: on
line diff
--- a/libervia/backend/memory/encryption.py	Tue Dec 03 00:53:18 2024 +0100
+++ b/libervia/backend/memory/encryption.py	Wed Dec 11 01:17:09 2024 +0200
@@ -487,7 +487,7 @@
         client = host.get_client(profile)
         peer_jid = jid.JID(data["jid"]).userhostJID()
         ui = yield client.encryption.get_trust_ui(peer_jid, plg.namespace)
-        defer.returnValue({"xmlui": ui.toXml()})
+        return {"xmlui": ui.toXml()}
 
     ## Triggers ##