summaryrefslogtreecommitdiff
path: root/poezio
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-12-31 09:05:29 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2019-12-31 11:54:52 +0100
commit92e81d8f877bc69f83a4673695ccb712d5542891 (patch)
tree896d41aa4b4d83bfe0301ae81de51a637749be3e /poezio
parent238eb8a0a1e02bbe491ebcfd34c3bda1b5f19cac (diff)
downloadpoezio-92e81d8f877bc69f83a4673695ccb712d5542891.tar.gz
poezio-92e81d8f877bc69f83a4673695ccb712d5542891.tar.bz2
poezio-92e81d8f877bc69f83a4673695ccb712d5542891.tar.xz
poezio-92e81d8f877bc69f83a4673695ccb712d5542891.zip
Allow encryption in normal messages
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'poezio')
-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 bcaba5e3..e9593777 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