aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/src/database.vala
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/omemo/src/database.vala')
-rw-r--r--plugins/omemo/src/database.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/omemo/src/database.vala b/plugins/omemo/src/database.vala
index 1bcd7cae..bce1d4e6 100644
--- a/plugins/omemo/src/database.vala
+++ b/plugins/omemo/src/database.vala
@@ -98,6 +98,10 @@ public class Database : Qlite.Database {
return this.with_address(identity_id, address_name)
.with(this.device_id, "=", device_id).single().row().inner;
}
+
+ public QueryBuilder get_with_device_id(int device_id) {
+ return select().with(this.device_id, "=", device_id);
+ }
}