diff options
author | Marvin W <git@larma.de> | 2017-03-10 16:02:32 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-03-10 16:09:47 +0100 |
commit | 7a1aa8c806a63cfd031c082524501e26d4a181ee (patch) | |
tree | 9d7895ce184d87e329d3ad62d8cda1d10c2596d2 /vala-xmpp/src/module/message | |
parent | 5fc0435cc1227bf445d06a3931343020faaecd10 (diff) | |
download | dino-7a1aa8c806a63cfd031c082524501e26d4a181ee.tar.gz dino-7a1aa8c806a63cfd031c082524501e26d4a181ee.zip |
Do not expose UUID lib dependency outside vala-xmpp library
Diffstat (limited to 'vala-xmpp/src/module/message')
-rw-r--r-- | vala-xmpp/src/module/message/stanza.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vala-xmpp/src/module/message/stanza.vala b/vala-xmpp/src/module/message/stanza.vala index 811fbd22..8a9064a5 100644 --- a/vala-xmpp/src/module/message/stanza.vala +++ b/vala-xmpp/src/module/message/stanza.vala @@ -33,9 +33,9 @@ public class Stanza : Xmpp.Stanza { } } - public Stanza(string id = UUID.generate_random_unparsed()) { + public Stanza(string? id = null) { base.outgoing(new StanzaNode.build("message")); - stanza.set_attribute(ATTRIBUTE_ID, id); + stanza.set_attribute(ATTRIBUTE_ID, id ?? random_uuid()); } public Stanza.from_stanza(StanzaNode stanza_node, string my_jid) { |