diff options
author | Marvin W <git@larma.de> | 2017-05-13 17:48:13 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-08-27 14:52:18 +0200 |
commit | 9840774a87b9d15523ecc04ee4c157270e9abfe5 (patch) | |
tree | e3183522c19cabc787ec969d67a35208cd9c61de /xmpp-vala/src/module | |
parent | ad033beea82a4ba20da71220966b80d5f674428f (diff) | |
download | dino-9840774a87b9d15523ecc04ee4c157270e9abfe5.tar.gz dino-9840774a87b9d15523ecc04ee4c157270e9abfe5.zip |
omemo: store and display identity keys of all devices
Diffstat (limited to 'xmpp-vala/src/module')
-rw-r--r-- | xmpp-vala/src/module/xep/0060_pubsub.vala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmpp-vala/src/module/xep/0060_pubsub.vala b/xmpp-vala/src/module/xep/0060_pubsub.vala index 65c16c3d..45fcb137 100644 --- a/xmpp-vala/src/module/xep/0060_pubsub.vala +++ b/xmpp-vala/src/module/xep/0060_pubsub.vala @@ -29,11 +29,12 @@ namespace Xmpp.Xep.Pubsub { }); } - public void publish(XmppStream stream, string? jid, string node_id, string node, string item_id, StanzaNode content) { + public void publish(XmppStream stream, string? jid, string node_id, string node, string? item_id, StanzaNode content) { StanzaNode pubsub_node = new StanzaNode.build("pubsub", NS_URI).add_self_xmlns(); StanzaNode publish_node = new StanzaNode.build("publish", NS_URI).put_attribute("node", node_id); pubsub_node.put_node(publish_node); - StanzaNode items_node = new StanzaNode.build("item", NS_URI).put_attribute("id", item_id); + StanzaNode items_node = new StanzaNode.build("item", NS_URI); + if (item_id != null) items_node.put_attribute("id", item_id); items_node.put_node(content); publish_node.put_node(items_node); Iq.Stanza iq = new Iq.Stanza.set(pubsub_node); |