Mercurial > libervia-backend
changeset 3919:7b2c51bcc8f5
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.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 06 Oct 2022 16:02:05 +0200 |
parents | e63f96e60f7b |
children | 993cc8e56aef |
files | sat/plugins/plugin_xep_0384.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0384.py Thu Oct 06 16:02:05 2022 +0200 +++ b/sat/plugins/plugin_xep_0384.py Thu Oct 06 16:02:05 2022 +0200 @@ -1750,9 +1750,9 @@ @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