From 47103fc5ebb8db6b597ea233229ec8de932ae99d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 1 Jul 2019 12:09:41 +0200 Subject: e2ee-api: do not edit non-chat/groupchat messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/plugin_e2ee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'poezio/plugin_e2ee.py') diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py index 52184336..66a8bd97 100644 --- a/poezio/plugin_e2ee.py +++ b/poezio/plugin_e2ee.py @@ -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 -- cgit v1.2.3