changeset 4223:919bdf7768d8

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.
author Goffi <goffi@goffi.org>
date Tue, 05 Mar 2024 17:31:56 +0100 (9 months ago)
parents 1c30d574df2b
children 8499b3ad5edb
files libervia/backend/plugins/plugin_xep_0391.py
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)