summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-06-04 19:37:57 +0200
committermathieui <mathieui@mathieui.net>2016-06-04 19:37:57 +0200
commit1ced5805514f853145891ae591aa9a0a5c8b84ad (patch)
tree6915b8e7d29fd596701168123ddc984e0a4164e2
parent8a491f250d5e58e23d3d4d54ad353dbe97bdf06a (diff)
downloadpoezio-1ced5805514f853145891ae591aa9a0a5c8b84ad.tar.gz
poezio-1ced5805514f853145891ae591aa9a0a5c8b84ad.tar.bz2
poezio-1ced5805514f853145891ae591aa9a0a5c8b84ad.tar.xz
poezio-1ced5805514f853145891ae591aa9a0a5c8b84ad.zip
Use message processing hints in the OTR plugin
-rw-r--r--plugins/otr.py2
-rw-r--r--src/connection.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/plugins/otr.py b/plugins/otr.py
index 3942bcd8..2d59d544 100644
--- a/plugins/otr.py
+++ b/plugins/otr.py
@@ -347,6 +347,8 @@ class PoezioContext(Context):
mbody=msg.decode('ascii'),
mtype='chat')
message.enable('carbon_private')
+ message.enable('no-copy')
+ message.enable('no-permanent-store')
message.send()
def setState(self, newstate):
diff --git a/src/connection.py b/src/connection.py
index b3bf00e3..afeb5189 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -161,6 +161,7 @@ class Connection(slixmpp.ClientXMPP):
self.register_plugin('xep_0280')
self.register_plugin('xep_0297')
self.register_plugin('xep_0308')
+ self.register_plugin('xep_0334')
self.init_plugins()
def set_keepalive_values(self, option=None, value=None):