Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
4006:9456852d3286 | 4007:1d5a81e3c9e8 |
---|---|
2111 message has fully progressed through the message receiving flow. Can be used | 2111 message has fully progressed through the message receiving flow. Can be used |
2112 to apply treatments to the fully processed message, like marking it as | 2112 to apply treatments to the fully processed message, like marking it as |
2113 encrypted. | 2113 encrypted. |
2114 @return: Whether to continue the message received flow. | 2114 @return: Whether to continue the message received flow. |
2115 """ | 2115 """ |
2116 if client.is_component: | |
2117 return True | |
2116 muc_plaintext_cache_key: Optional[MUCPlaintextCacheKey] = None | 2118 muc_plaintext_cache_key: Optional[MUCPlaintextCacheKey] = None |
2117 | 2119 |
2118 sender_jid = jid.JID(message_elt["from"]) | 2120 sender_jid = jid.JID(message_elt["from"]) |
2119 feedback_jid: jid.JID | 2121 feedback_jid: jid.JID |
2120 | 2122 |