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.
This commit is contained in:
Goffi 2023-03-16 12:31:24 +01:00
commit 199f18366c

View file

@ -2113,6 +2113,8 @@ class OMEMO:
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"])