From 79e0aee5fdb90830fad748fdfae717cb5fbf91f9 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 4 Sep 2018 13:48:33 +0200 Subject: [PATCH] Fix property with custom get+set to not have a default value (compiler error with vala 0.41) Fix encryption icon not being shown right away --- libdino/src/service/message_processor.vala | 2 +- xmpp-vala/src/module/xep/0004_data_forms.vala | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libdino/src/service/message_processor.vala b/libdino/src/service/message_processor.vala index d0e3e79a..f7f13a40 100644 --- a/libdino/src/service/message_processor.vala +++ b/libdino/src/service/message_processor.vala @@ -180,7 +180,7 @@ public class MessageProcessor : StreamInteractionModule, Object { private class StoreMessageListener : MessageListener { - public string[] after_actions_const = new string[]{ "DEDUPLICATE" }; + public string[] after_actions_const = new string[]{ "DEDUPLICATE", "DECRYPT" }; public override string action_group { get { return "STORE"; } } public override string[] after_actions { get { return after_actions_const; } } diff --git a/xmpp-vala/src/module/xep/0004_data_forms.vala b/xmpp-vala/src/module/xep/0004_data_forms.vala index cc0a1a28..9456197c 100644 --- a/xmpp-vala/src/module/xep/0004_data_forms.vala +++ b/xmpp-vala/src/module/xep/0004_data_forms.vala @@ -53,7 +53,6 @@ public class DataForm { public string? label { get { return node.get_attribute("label", NS_URI); } set { node.set_attribute("label", value); } - default = null; } public virtual Type? type_ { get; internal set; default=null; } public string? var {