summaryrefslogtreecommitdiff
path: root/plugins/otr.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-09-20 15:02:45 +0900
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-11-26 16:34:58 +0000
commit76445a68670b8b1cc9a046d582ddc68982e4c221 (patch)
tree79ca7e397a397d8fbf513491125414e16ec3e549 /plugins/otr.py
parent1f43535f459ca5445dc0a8bfa05d57ac20481cad (diff)
downloadpoezio-76445a68670b8b1cc9a046d582ddc68982e4c221.tar.gz
poezio-76445a68670b8b1cc9a046d582ddc68982e4c221.tar.bz2
poezio-76445a68670b8b1cc9a046d582ddc68982e4c221.tar.xz
poezio-76445a68670b8b1cc9a046d582ddc68982e4c221.zip
Add support for XEP-0380: Explicit Message Encryption
Both for displaying incoming messages, and sending OTR and legacy OpenPGP.
Diffstat (limited to 'plugins/otr.py')
-rw-r--r--plugins/otr.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/otr.py b/plugins/otr.py
index cffe1797..580a72c4 100644
--- a/plugins/otr.py
+++ b/plugins/otr.py
@@ -347,6 +347,7 @@ class PoezioContext(Context):
message = self.xmpp.make_message(mto=self.peer,
mbody=msg.decode('ascii'),
mtype='chat')
+ message['eme']['namespace'] = 'urn:xmpp:otr:0'
message.enable('carbon_private')
message.enable('no-copy')
message.enable('no-permanent-store')