From 1eca8c6f67cc63084e5e4cc4b92222b0817f13cc Mon Sep 17 00:00:00 2001 From: fiaxh Date: Fri, 17 Mar 2017 16:21:07 +0100 Subject: Fix message stanza default type --- xmpp-vala/src/module/message/stanza.vala | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xmpp-vala/src/module/message') diff --git a/xmpp-vala/src/module/message/stanza.vala b/xmpp-vala/src/module/message/stanza.vala index 8a9064a5..2b60c517 100644 --- a/xmpp-vala/src/module/message/stanza.vala +++ b/xmpp-vala/src/module/message/stanza.vala @@ -33,6 +33,13 @@ public class Stanza : Xmpp.Stanza { } } + public override string? type_ { + get { + return base.type_ ?? TYPE_NORMAL; + } + set { base.type_ = value; } + } + public Stanza(string? id = null) { base.outgoing(new StanzaNode.build("message")); stanza.set_attribute(ATTRIBUTE_ID, id ?? random_uuid()); -- cgit v1.2.3-70-g09d2