Commit 47103fc5 authored by Maxime Buquet's avatar Maxime Buquet

e2ee-api: do not edit non-chat/groupchat messages

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 2778401b
......@@ -166,7 +166,7 @@ class E2EEPlugin(BasePlugin):
return None
def _encrypt(self, stanza: StanzaBase) -> Optional[StanzaBase]:
if not isinstance(stanza, Message):
if not isinstance(stanza, Message) or stanza['type'] not in ('chat', 'groupchat'):
return stanza
message = stanza
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment