Mercurial > libervia-backend
diff sat/plugins/plugin_xep_0384.py @ 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 | cd6f70015738 |
children | 524856bd7b19 |
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"])