From 1ced5805514f853145891ae591aa9a0a5c8b84ad Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 4 Jun 2016 19:37:57 +0200 Subject: [PATCH] Use message processing hints in the OTR plugin --- plugins/otr.py | 2 ++ src/connection.py | 1 + 2 files changed, 3 insertions(+) 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):