From fc6abe96bf71295d1117aef0696464ab8f0e7d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Mon, 26 Feb 2018 20:39:38 +0100 Subject: [PATCH] [pgp] Allow origin-id in encrypted messages --- pgp/pgpplugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pgp/pgpplugin.py b/pgp/pgpplugin.py index 4610b2e..cccf0e7 100644 --- a/pgp/pgpplugin.py +++ b/pgp/pgpplugin.py @@ -49,7 +49,9 @@ ALLOWED_TAGS = [('request', nbxmpp.NS_RECEIPTS), ('store', nbxmpp.NS_MSG_HINTS), ('no-copy', nbxmpp.NS_MSG_HINTS), ('no-permanent-store', nbxmpp.NS_MSG_HINTS), - ('replace', nbxmpp.NS_CORRECT)] + ('replace', nbxmpp.NS_CORRECT), + ('origin-id', nbxmpp.NS_SID), + ] class OldPGPPlugin(GajimPlugin): @@ -281,6 +283,7 @@ class OldPGPPlugin(GajimPlugin): stanza = nbxmpp.Message( to=obj.msg_iq.getTo(), typ=obj.msg_iq.getType()) + stanza.setID(obj.stanza_id) stanza.setThread(obj.msg_iq.getThread()) for tag, ns in ALLOWED_TAGS: node = obj.msg_iq.getTag(tag, namespace=ns) -- GitLab