From b29d52fddae832d275e66dbd1b494e06ce11d0da Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 9 Aug 2017 20:44:15 +0200 Subject: SRV records for XMPP over TLS --- libdino/src/entity/conversation.vala | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'libdino/src/entity/conversation.vala') diff --git a/libdino/src/entity/conversation.vala b/libdino/src/entity/conversation.vala index 40bff1c2..fa78c619 100644 --- a/libdino/src/entity/conversation.vala +++ b/libdino/src/entity/conversation.vala @@ -73,17 +73,19 @@ public class Conversation : Object { .value(db.conversation.jid_id, db.get_jid_id(counterpart)) .value(db.conversation.type_, type_) .value(db.conversation.encryption, encryption) - .value(db.conversation.read_up_to, read_up_to.id) - .value(db.conversation.active, active); + .value(db.conversation.active, active) + .value(db.conversation.notification, notify_setting) + .value(db.conversation.send_typing, send_typing) + .value(db.conversation.send_marker, send_marker); + if (read_up_to != null) { + insert.value(db.conversation.read_up_to, read_up_to.id); + } if (counterpart.is_full()) { insert.value(db.conversation.resource, counterpart.resourcepart); } if (last_active != null) { insert.value(db.conversation.last_active, (long) last_active.to_unix()); } - insert.value(db.conversation.notification, notify_setting); - insert.value(db.conversation.send_typing, send_typing); - insert.value(db.conversation.send_marker, send_marker); id = (int) insert.perform(); notify.connect(on_update); } -- cgit v1.2.3-54-g00ecf