aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/src/database.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-01-09 00:54:43 +0100
committerfiaxh <git@lightrise.org>2019-01-09 00:59:28 +0100
commit8b08d874fa8dcde2698999e2a3220879b963a197 (patch)
tree57275e51423a8c89780e5b0eae403c7b19e465cb /plugins/omemo/src/database.vala
parentfc1a9a5712b1f46bcd2390e798147f3855042b96 (diff)
downloaddino-8b08d874fa8dcde2698999e2a3220879b963a197.tar.gz
dino-8b08d874fa8dcde2698999e2a3220879b963a197.zip
Fix OMEMO decryption if MUC real_jid is not known (because sender is offline)
fixes #490
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);
+ }
}