changeset 358ac30de104 in /home/hg/repos/gajim-plugins
author: Daniel Gultsch daniel@gultsch.de branches: details:gajim-plugins?cmd=changeset;node=358ac30de104 description: add store hint as child of message
diffstat:
omemo/__init__.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diffs (30 lines):
diff -r 842551250ef0 -r 358ac30de104 omemo/__init__.py --- a/omemo/__init__.py Mon May 23 10:27:42 2016 +0200 +++ b/omemo/__init__.py Mon May 23 10:36:41 2016 +0200 @@ -28,6 +28,8 @@ from plugins import GajimPlugin from plugins.helpers import log_calls
+from nbxmpp.simplexml import Node + from .ui import Ui from .xmpp import ( NS_NOTIFY, NS_OMEMO, BundleInformationAnnouncement, BundleInformationQuery, @@ -39,6 +41,8 @@
AXOLOTL_MISSING = 'Please install python-axolotl.'
+NS_HINTS = 'urn:xmpp:hints' + log = logging.getLogger('gajim.plugin_system.omemo') try: from omemo.state import OmemoState @@ -464,6 +468,8 @@ encrypted_node = OmemoMessage(msg_dict) event.msg_iq.delChild('body') event.msg_iq.addChild(node=encrypted_node) + store = Node('store', attrs={'xmlns' : NS_HINTS}) + event.msg_iq.addChild(node=store) log.debug(account + ' → ' + str(event.msg_iq)) except: return True