From 4b498cffe09bc2da63b2128974e8b925445f55c8 Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 6 Oct 2022 16:02:05 +0200 Subject: [PATCH] plugin XEP-0384: temporarily disable `` stanza encryption: `` stanza encryption is implemented, but the `send` trigger doesn't catch all `iq` stanza send (which are often sent directly with `xmlstream.send`), and some stanza encryption may cause trouble (happened with disco on a bare jid). It is temporarily disabled but should be reactivated before `0.9` release. --- sat/plugins/plugin_xep_0384.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sat/plugins/plugin_xep_0384.py b/sat/plugins/plugin_xep_0384.py index 8785be9e..2fd6f0e9 100644 --- a/sat/plugins/plugin_xep_0384.py +++ b/sat/plugins/plugin_xep_0384.py @@ -1750,9 +1750,9 @@ class OMEMO: @param stanza: The stanza that is about to be sent. Can be modified. @return: Whether the send message flow should continue or not. """ - # SCE is only applicable to message and IQ stanzas - if stanza.name not in { "message", "iq" }: + # FIXME: temporary disabling IQ stanza encryption + if stanza.name not in { "message" }: # , "iq" }: return True # Get the intended recipient