mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 17:52:17 -05:00
Fix getNumTrustedKeys
This commit is contained in:
parent
5ab0d5d1c1
commit
0ee64124fe
@ -863,11 +863,13 @@ public class DatabaseBackend extends SQLiteOpenHelper {
|
|||||||
SQLiteDatabase db = getReadableDatabase();
|
SQLiteDatabase db = getReadableDatabase();
|
||||||
String[] args = {
|
String[] args = {
|
||||||
account.getUuid(),
|
account.getUuid(),
|
||||||
name
|
name,
|
||||||
|
String.valueOf(AxolotlService.SQLiteAxolotlStore.Trust.TRUSTED.ordinal())
|
||||||
};
|
};
|
||||||
return DatabaseUtils.queryNumEntries(db, AxolotlService.SQLiteAxolotlStore.IDENTITIES_TABLENAME,
|
return DatabaseUtils.queryNumEntries(db, AxolotlService.SQLiteAxolotlStore.IDENTITIES_TABLENAME,
|
||||||
AxolotlService.SQLiteAxolotlStore.ACCOUNT + " = ?"
|
AxolotlService.SQLiteAxolotlStore.ACCOUNT + " = ?"
|
||||||
+ " AND " + AxolotlService.SQLiteAxolotlStore.NAME + " = ?",
|
+ " AND " + AxolotlService.SQLiteAxolotlStore.NAME + " = ?"
|
||||||
|
+ " AND " + AxolotlService.SQLiteAxolotlStore.TRUSTED + " = ?",
|
||||||
args
|
args
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user