summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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