From ef0483765a0fd567f25b1f0af6df04e8973e5624 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Mon, 20 Mar 2017 19:27:39 +0100 Subject: Small bug fixes and compatibility with Vala 0.36 --- plugins/omemo/src/database.vala | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/omemo/src/database.vala') diff --git a/plugins/omemo/src/database.vala b/plugins/omemo/src/database.vala index db530c69..8d69ca15 100644 --- a/plugins/omemo/src/database.vala +++ b/plugins/omemo/src/database.vala @@ -1,5 +1,4 @@ using Gee; -using Sqlite; using Qlite; using Dino.Entities; @@ -16,7 +15,7 @@ public class Database : Qlite.Database { public Column identity_key_private_base64 = new Column.Text("identity_key_private_base64") { not_null = true }; public Column identity_key_public_base64 = new Column.Text("identity_key_public_base64") { not_null = true }; - protected IdentityTable(Database db) { + internal IdentityTable(Database db) { base(db, "identity"); init({id, account_id, device_id, identity_key_private_base64, identity_key_public_base64}); } @@ -27,7 +26,7 @@ public class Database : Qlite.Database { public Column signed_pre_key_id = new Column.Integer("signed_pre_key_id") { not_null = true }; public Column record_base64 = new Column.Text("record_base64") { not_null = true }; - protected SignedPreKeyTable(Database db) { + internal SignedPreKeyTable(Database db) { base(db, "signed_pre_key"); init({identity_id, signed_pre_key_id, record_base64}); unique({identity_id, signed_pre_key_id}); @@ -39,7 +38,7 @@ public class Database : Qlite.Database { public Column pre_key_id = new Column.Integer("pre_key_id") { not_null = true }; public Column record_base64 = new Column.Text("record_base64") { not_null = true }; - protected PreKeyTable(Database db) { + internal PreKeyTable(Database db) { base(db, "pre_key"); init({identity_id, pre_key_id, record_base64}); unique({identity_id, pre_key_id}); @@ -52,7 +51,7 @@ public class Database : Qlite.Database { public Column device_id = new Column.Integer("device_id") { not_null = true }; public Column record_base64 = new Column.Text("record_base64") { not_null = true }; - protected SessionTable(Database db) { + internal SessionTable(Database db) { base(db, "session"); init({identity_id, address_name, device_id, record_base64}); unique({identity_id, address_name, device_id}); -- cgit v1.2.3-54-g00ecf