aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2020-01-22 00:09:06 +0100
committerMarvin W <git@larma.de>2020-01-22 00:09:06 +0100
commit8c5957537c63e2a8b9a937fe99db509b153df6c6 (patch)
treee86e5add6275eecbdf2e4be0f5eecfa07ef7c5c0 /libdino/src
parent48cd863025211a9075eef60b0d259ae7a634b551 (diff)
downloaddino-8c5957537c63e2a8b9a937fe99db509b153df6c6.tar.gz
dino-8c5957537c63e2a8b9a937fe99db509b153df6c6.zip
Fix some compiler warnings
Diffstat (limited to 'libdino/src')
-rw-r--r--libdino/src/plugin/interfaces.vala10
-rw-r--r--libdino/src/service/content_item_store.vala10
2 files changed, 10 insertions, 10 deletions
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; }
diff --git a/libdino/src/service/content_item_store.vala b/libdino/src/service/content_item_store.vala
index 8be4d85f..1e2ee85a 100644
--- a/libdino/src/service/content_item_store.vala
+++ b/libdino/src/service/content_item_store.vala
@@ -223,11 +223,11 @@ public interface ContentFilter : Object {
public abstract class ContentItem : Object {
public int id { get; set; }
public string type_ { get; set; }
- public Jid? jid { get; set; default=null; }
- public DateTime? sort_time { get; set; default=null; }
- public DateTime? display_time { get; set; default=null; }
- public Encryption? encryption { get; set; default=null; }
- public Entities.Message.Marked? mark { get; set; default=null; }
+ public Jid jid { get; set; }
+ public DateTime sort_time { get; set; }
+ public DateTime display_time { get; set; }
+ public Encryption encryption { get; set; }
+ public Entities.Message.Marked mark { get; set; }
ContentItem(int id, string ty, Jid jid, DateTime sort_time, DateTime display_time, Encryption encryption, Entities.Message.Marked mark) {
this.id = id;