From 199f18366c0c02dc6cc0a9f1ab5612839dfd7934 Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 16 Mar 2023 12:31:24 +0100 Subject: [PATCH] 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. --- sat/plugins/plugin_xep_0384.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sat/plugins/plugin_xep_0384.py b/sat/plugins/plugin_xep_0384.py index 43a506a2..e72ce305 100644 --- a/sat/plugins/plugin_xep_0384.py +++ b/sat/plugins/plugin_xep_0384.py @@ -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"])