aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs
diff options
context:
space:
mode:
authorAndreas Straub <andy@strb.org>2015-07-20 22:02:54 +0200
committerAndreas Straub <andy@strb.org>2015-07-20 22:02:54 +0200
commit0ee64124fe317f6959d1ff61cc9e70b272bf8eb5 (patch)
treee383f953c01c8278db02db1007221638c756e3b6 /src/main/java/eu/siacs
parent5ab0d5d1c1c54e4e440612a31a19b036b204eca1 (diff)
Fix getNumTrustedKeys
Diffstat (limited to 'src/main/java/eu/siacs')
-rw-r--r--src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java b/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java
index 71b4cba9a..6091b352e 100644
--- a/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java
+++ b/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java
@@ -863,11 +863,13 @@ public class DatabaseBackend extends SQLiteOpenHelper {
SQLiteDatabase db = getReadableDatabase();
String[] args = {
account.getUuid(),
- name
+ name,
+ String.valueOf(AxolotlService.SQLiteAxolotlStore.Trust.TRUSTED.ordinal())
};
return DatabaseUtils.queryNumEntries(db, AxolotlService.SQLiteAxolotlStore.IDENTITIES_TABLENAME,
AxolotlService.SQLiteAxolotlStore.ACCOUNT + " = ?"
- + " AND " + AxolotlService.SQLiteAxolotlStore.NAME + " = ?",
+ + " AND " + AxolotlService.SQLiteAxolotlStore.NAME + " = ?"
+ + " AND " + AxolotlService.SQLiteAxolotlStore.TRUSTED + " = ?",
args
);
}