Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0384.py @ 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 | 42d3110ac9b1 |
comparison
equal
deleted
inserted
replaced
3918:e63f96e60f7b | 3919:7b2c51bcc8f5 |
---|---|
1748 """ | 1748 """ |
1749 @param client: The client sending this message. | 1749 @param client: The client sending this message. |
1750 @param stanza: The stanza that is about to be sent. Can be modified. | 1750 @param stanza: The stanza that is about to be sent. Can be modified. |
1751 @return: Whether the send message flow should continue or not. | 1751 @return: Whether the send message flow should continue or not. |
1752 """ | 1752 """ |
1753 | |
1754 # SCE is only applicable to message and IQ stanzas | 1753 # SCE is only applicable to message and IQ stanzas |
1755 if stanza.name not in { "message", "iq" }: | 1754 # FIXME: temporary disabling IQ stanza encryption |
1755 if stanza.name not in { "message" }: # , "iq" }: | |
1756 return True | 1756 return True |
1757 | 1757 |
1758 # Get the intended recipient | 1758 # Get the intended recipient |
1759 recipient = stanza.getAttribute("to", None) | 1759 recipient = stanza.getAttribute("to", None) |
1760 if recipient is None: | 1760 if recipient is None: |