diff options
author | Marvin W <git@larma.de> | 2017-03-20 19:27:39 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-03-23 16:48:26 +0100 |
commit | ef0483765a0fd567f25b1f0af6df04e8973e5624 (patch) | |
tree | 9288c239217496774710542b922cdd264e0838cc /plugins/omemo/src | |
parent | aca6842c490c52b6460b7d9ebd7cc77eec4b97ef (diff) | |
download | dino-ef0483765a0fd567f25b1f0af6df04e8973e5624.tar.gz dino-ef0483765a0fd567f25b1f0af6df04e8973e5624.zip |
Small bug fixes and compatibility with Vala 0.36
Diffstat (limited to 'plugins/omemo/src')
-rw-r--r-- | plugins/omemo/src/database.vala | 9 |
1 files changed, 4 insertions, 5 deletions
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<string> identity_key_private_base64 = new Column.Text("identity_key_private_base64") { not_null = true }; public Column<string> 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<int> signed_pre_key_id = new Column.Integer("signed_pre_key_id") { not_null = true }; public Column<string> 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<int> pre_key_id = new Column.Integer("pre_key_id") { not_null = true }; public Column<string> 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<int> device_id = new Column.Integer("device_id") { not_null = true }; public Column<string> 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}); |