aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/entity/message.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-03-24 10:40:48 +0100
committerMarvin W <git@larma.de>2017-03-24 15:18:39 +0100
commitb63e5f5f9fc0fcd85adf2f93f65d61abd4cc0681 (patch)
tree20543c6e78d28df345304c7d595383338c7676ce /libdino/src/entity/message.vala
parentc0314212a0d951494fe6397fa53a9c5689a3ff87 (diff)
downloaddino-b63e5f5f9fc0fcd85adf2f93f65d61abd4cc0681.tar.gz
dino-b63e5f5f9fc0fcd85adf2f93f65d61abd4cc0681.zip
Some caching and fix gpgme on some systems
Diffstat (limited to 'libdino/src/entity/message.vala')
-rw-r--r--libdino/src/entity/message.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdino/src/entity/message.vala b/libdino/src/entity/message.vala
index 602c74b6..e50a1fc2 100644
--- a/libdino/src/entity/message.vala
+++ b/libdino/src/entity/message.vala
@@ -140,7 +140,7 @@ public class Message : Object {
private void on_update(Object o, ParamSpec sp) {
Qlite.UpdateBuilder update_builder = db.message.update().with(db.message.id, "=", id);
- switch (sp.get_name()) {
+ switch (sp.name) {
case "stanza_id":
update_builder.set(db.message.stanza_id, stanza_id); break;
case "counterpart":
@@ -166,7 +166,7 @@ public class Message : Object {
update_builder.perform();
if (sp.get_name() == "real_jid") {
- db.real_jid.insert()
+ db.real_jid.insert().or("REPLACE")
.value(db.real_jid.message_id, id)
.value(db.real_jid.real_jid, real_jid)
.perform();