aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime “pep” Buquet2019-12-31 08:05:29 (GMT)
committerMaxime “pep” Buquet2019-12-31 10:54:52 (GMT)
commit92e81d8f877bc69f83a4673695ccb712d5542891 (patch)
tree896d41aa4b4d83bfe0301ae81de51a637749be3e
parent238eb8a0a1e02bbe491ebcfd34c3bda1b5f19cac (diff)
downloadpoezio-92e81d8f877bc69f83a4673695ccb712d5542891.tar.gz
poezio-92e81d8f877bc69f83a4673695ccb712d5542891.tar.xz
Allow encryption in normal messages
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-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 bcaba5e..e959377 100644
--- a/poezio/plugin_e2ee.py
+++ b/poezio/plugin_e2ee.py
@@ -368,7 +368,7 @@ class E2EEPlugin(BasePlugin):
return None
async def _encrypt(self, stanza: StanzaBase) -> Optional[StanzaBase]:
- if not isinstance(stanza, Message) or stanza['type'] not in ('chat', 'groupchat'):
+ if not isinstance(stanza, Message) or stanza['type'] not in ('normal', 'chat', 'groupchat'):
raise NothingToEncrypt()
message = stanza