diff options
author | Marvin W <git@larma.de> | 2018-06-19 12:52:00 +0200 |
---|---|---|
committer | Samuel Hand <samuel.hand@openmailbox.org> | 2018-06-26 15:42:02 +0100 |
commit | 638d81d67ecd6c7c8be7fd67aeaf15d16486f8e9 (patch) | |
tree | ea1cf3c5f28477bc928777ea0379d2616170fd0b /plugins/omemo/src/database.vala | |
parent | 2a8352c5439129798b5141ec021b3b9405840a8a (diff) | |
download | dino-638d81d67ecd6c7c8be7fd67aeaf15d16486f8e9.tar.gz dino-638d81d67ecd6c7c8be7fd67aeaf15d16486f8e9.zip |
More cleanup and database modifications
Diffstat (limited to 'plugins/omemo/src/database.vala')
-rw-r--r-- | plugins/omemo/src/database.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/omemo/src/database.vala b/plugins/omemo/src/database.vala index 48fddde2..3f24e9f6 100644 --- a/plugins/omemo/src/database.vala +++ b/plugins/omemo/src/database.vala @@ -37,8 +37,8 @@ public class Database : Qlite.Database { index("identity_meta_list_idx", {identity_id, address_name}); } - public QueryBuilder with_address(string address_name) { - return select().with(this.address_name, "=", address_name); + public QueryBuilder with_address(int identity_id, string address_name) { + return select().with(this.identity_id, "=", identity_id).with(this.address_name, "=", address_name); } public void insert_device_list(int32 identity_id, string address_name, ArrayList<int32> devices) { |