Commit fc6abe96 authored by Philipp Hörist's avatar Philipp Hörist

[pgp] Allow origin-id in encrypted messages

parent c7266367
...@@ -49,7 +49,9 @@ ALLOWED_TAGS = [('request', nbxmpp.NS_RECEIPTS), ...@@ -49,7 +49,9 @@ ALLOWED_TAGS = [('request', nbxmpp.NS_RECEIPTS),
('store', nbxmpp.NS_MSG_HINTS), ('store', nbxmpp.NS_MSG_HINTS),
('no-copy', nbxmpp.NS_MSG_HINTS), ('no-copy', nbxmpp.NS_MSG_HINTS),
('no-permanent-store', 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): class OldPGPPlugin(GajimPlugin):
...@@ -281,6 +283,7 @@ class OldPGPPlugin(GajimPlugin): ...@@ -281,6 +283,7 @@ class OldPGPPlugin(GajimPlugin):
stanza = nbxmpp.Message( stanza = nbxmpp.Message(
to=obj.msg_iq.getTo(), to=obj.msg_iq.getTo(),
typ=obj.msg_iq.getType()) typ=obj.msg_iq.getType())
stanza.setID(obj.stanza_id)
stanza.setThread(obj.msg_iq.getThread()) stanza.setThread(obj.msg_iq.getThread())
for tag, ns in ALLOWED_TAGS: for tag, ns in ALLOWED_TAGS:
node = obj.msg_iq.getTag(tag, namespace=ns) node = obj.msg_iq.getTag(tag, namespace=ns)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment