summaryrefslogtreecommitdiff
path: root/poezio/plugin_e2ee.py
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-07-01 12:09:41 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2019-07-01 19:42:45 +0200
commit47103fc5ebb8db6b597ea233229ec8de932ae99d (patch)
tree34cd835b8d12c1dc76bb47d903edd116f1c9dcfd /poezio/plugin_e2ee.py
parent2778401b2347ffc917176902ca0bc6a8ad1f7121 (diff)
downloadpoezio-47103fc5ebb8db6b597ea233229ec8de932ae99d.tar.gz
poezio-47103fc5ebb8db6b597ea233229ec8de932ae99d.tar.bz2
poezio-47103fc5ebb8db6b597ea233229ec8de932ae99d.tar.xz
poezio-47103fc5ebb8db6b597ea233229ec8de932ae99d.zip
e2ee-api: do not edit non-chat/groupchat messages
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'poezio/plugin_e2ee.py')
-rw-r--r--poezio/plugin_e2ee.py2
1 files changed, 1 insertions, 1 deletions
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