diff options
author | Andreas Straub <andy@strb.org> | 2015-07-10 02:25:28 +0200 |
---|---|---|
committer | Andreas Straub <andy@strb.org> | 2015-07-10 02:45:58 +0200 |
commit | cc661dc4774f1bfa4955a94ca7830fd5384be81c (patch) | |
tree | 2bb33315d3d71809d6ff2b07bb7138312555df25 | |
parent | f0afcc4b525ab560f0b1c36bd02713a4746212a5 (diff) |
Fix setIdentityKeyTrust update statement
-rw-r--r-- | src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java | 4 |
1 files changed, 2 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 0ba2876a..4c6bf221 100644 --- a/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java +++ b/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java @@ -874,8 +874,8 @@ public class DatabaseBackend extends SQLiteOpenHelper { ContentValues values = new ContentValues(); values.put(AxolotlService.SQLiteAxolotlStore.TRUSTED, trust.ordinal()); int rows = db.update(AxolotlService.SQLiteAxolotlStore.IDENTITIES_TABLENAME, values, - AxolotlService.SQLiteAxolotlStore.ACCOUNT + " = ? " - + AxolotlService.SQLiteAxolotlStore.NAME + " = ? " + AxolotlService.SQLiteAxolotlStore.ACCOUNT + " = ? AND " + + AxolotlService.SQLiteAxolotlStore.NAME + " = ? AND " + AxolotlService.SQLiteAxolotlStore.FINGERPRINT + " = ? ", selectionArgs); return rows == 1; |