aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/src/manager.vala
diff options
context:
space:
mode:
authorSamuel Hand <samuel.hand@openmailbox.org>2018-07-06 20:14:51 +0100
committerSamuel Hand <samuel.hand@openmailbox.org>2018-07-06 20:14:51 +0100
commit7da735b844da1b80a11135d22b011cabf54ad0fe (patch)
treee1b312fa68a4e3e71a2bf7f09eb79befb0415f6c /plugins/omemo/src/manager.vala
parent20fe944c2d2ef790e93abd6f36e10489802465ab (diff)
downloaddino-7da735b844da1b80a11135d22b011cabf54ad0fe.tar.gz
dino-7da735b844da1b80a11135d22b011cabf54ad0fe.zip
More database migration, update defaults and indexes
Diffstat (limited to 'plugins/omemo/src/manager.vala')
-rw-r--r--plugins/omemo/src/manager.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/omemo/src/manager.vala b/plugins/omemo/src/manager.vala
index dffe9fc2..e1f3ee56 100644
--- a/plugins/omemo/src/manager.vala
+++ b/plugins/omemo/src/manager.vala
@@ -202,7 +202,7 @@ public class Manager : StreamInteractionModule, Object {
.with(db.identity_meta.identity_key_public_base64, "=", Base64.encode(bundle.identity_key.serialize()))
.single().row().is_present());
- Database.IdentityMetaTable.TrustLevel trusted = (Database.IdentityMetaTable.TrustLevel) db.identity_meta.with_address(account.id, jid.bare_jid.to_string()).with(db.identity_meta.device_id, "=", device_id).single()[db.identity_meta.trusted_identity, Database.IdentityMetaTable.TrustLevel.UNKNOWN];
+ Database.IdentityMetaTable.TrustLevel trusted = (Database.IdentityMetaTable.TrustLevel) db.identity_meta.with_address(account.id, jid.bare_jid.to_string()).with(db.identity_meta.device_id, "=", device_id).single()[db.identity_meta.trust_level, Database.IdentityMetaTable.TrustLevel.UNKNOWN];
if(untrust) {
trusted = Database.IdentityMetaTable.TrustLevel.UNKNOWN;