# HG changeset patch # User Goffi # Date 1709656316 -3600 # Node ID 919bdf7768d85b379540d068135c88f28cddc5db # Parent 1c30d574df2bbbb68d762a7a6b1c9e18ea8c73d9 plugin XEP-0391: remove the need to have a OLDMEMO session started to decrypt: It should not be mandatory to have an OLDMEMO session started to decrypt JET files, and this was actually making a test failing. diff -r 1c30d574df2b -r 919bdf7768d8 libervia/backend/plugins/plugin_xep_0391.py --- a/libervia/backend/plugins/plugin_xep_0391.py Tue Mar 05 17:31:56 2024 +0100 +++ b/libervia/backend/plugins/plugin_xep_0391.py Tue Mar 05 17:31:56 2024 +0100 @@ -157,10 +157,6 @@ iq_elt: domish.Element, jingle_elt: domish.Element ) -> bool: - if client.encryption.get_namespace( - session["peer_jid"].userhostJID() - ) != self._o.NS_OLDMEMO: - return True for content_elt in jingle_elt.elements(self._j.namespace, "content"): content_data = session["contents"][content_elt["name"]] security_elt = next(content_elt.elements(NS_JET, "security"), None)