plugin XEP-0384: temporarily disable <iq> stanza encryption:

`<iq>` 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.
This commit is contained in:
Goffi 2022-10-06 16:02:05 +02:00
commit 4b498cffe0

View file

@ -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