Mercurial > libervia-backend
changeset 4007:1d5a81e3c9e8
plugin XEP-0384: skip MessageReceived trigger when in a component:
OMEMO is not used in components so far, but the trigger is trying to request OMEMO PEP
nodes, which causes an error with virtual pubsub service of AP component.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 16 Mar 2023 12:31:24 +0100 |
parents | 9456852d3286 |
children | 56e5b18f4d06 |
files | sat/plugins/plugin_xep_0384.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0384.py Thu Mar 16 12:29:34 2023 +0100 +++ b/sat/plugins/plugin_xep_0384.py Thu Mar 16 12:31:24 2023 +0100 @@ -2113,6 +2113,8 @@ encrypted. @return: Whether to continue the message received flow. """ + if client.is_component: + return True muc_plaintext_cache_key: Optional[MUCPlaintextCacheKey] = None sender_jid = jid.JID(message_elt["from"])