From 8c5957537c63e2a8b9a937fe99db509b153df6c6 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Wed, 22 Jan 2020 00:09:06 +0100 Subject: Fix some compiler warnings --- libdino/src/plugin/interfaces.vala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libdino/src/plugin') diff --git a/libdino/src/plugin/interfaces.vala b/libdino/src/plugin/interfaces.vala index 2c9fb69d..b8c98dde 100644 --- a/libdino/src/plugin/interfaces.vala +++ b/libdino/src/plugin/interfaces.vala @@ -91,14 +91,14 @@ public abstract interface NotificationPopulator : Object { public abstract class MetaConversationItem : Object { public virtual string populator_id { get; set; } - public virtual Jid? jid { get; set; default=null; } + public virtual Jid jid { get; set; } public virtual bool dim { get; set; default=false; } - public virtual DateTime? sort_time { get; set; default=null; } + public virtual DateTime sort_time { get; set; default = new DateTime.now_utc(); } public virtual long seccondary_sort_indicator { get; set; } public virtual long tertiary_sort_indicator { get; set; } - public virtual DateTime? display_time { get; set; default=null; } - public virtual Encryption? encryption { get; set; default=null; } - public virtual Entities.Message.Marked? mark { get; set; default=null; } + public virtual DateTime display_time { get; set; default = new DateTime.now_utc(); } + public virtual Encryption encryption { get; set; default = Encryption.NONE; } + public virtual Entities.Message.Marked mark { get; set; default = Entities.Message.Marked.NONE; } public abstract bool can_merge { get; set; } public abstract bool requires_avatar { get; set; } -- cgit v1.2.3-70-g09d2