diff options
Diffstat (limited to 'vala-xmpp/src/module/presence/stanza.vala')
-rw-r--r-- | vala-xmpp/src/module/presence/stanza.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vala-xmpp/src/module/presence/stanza.vala b/vala-xmpp/src/module/presence/stanza.vala index 3dc036e5..9ad8f791 100644 --- a/vala-xmpp/src/module/presence/stanza.vala +++ b/vala-xmpp/src/module/presence/stanza.vala @@ -80,9 +80,9 @@ public class Stanza : Xmpp.Stanza { set { base.type_ = value; } } - public Stanza(string id = UUID.generate_random_unparsed()) { + public Stanza(string? id = null) { stanza = new StanzaNode.build("presence"); - this.id = id; + this.id = id ?? random_uuid(); } public Stanza.from_stanza(StanzaNode stanza_node, string my_jid) { |