diff options
author | Philipp Hörist <philipp@hoerist.com> | 2018-02-26 22:39:38 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2018-02-26 22:39:38 +0300 |
commit | fc6abe96bf71295d1117aef0696464ab8f0e7d4b (patch) | |
tree | a62a01615ce9f8ce3c94de3f330dc428b7a81fb1 | |
parent | c72663677cf364f8a897d4a3091e51b0f68dd014 (diff) |
[pgp] Allow origin-id in encrypted messages
-rw-r--r-- | pgp/pgpplugin.py | 5 |
1 files changed, 4 insertions, 1 deletions
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) |