From 24c48afd2e27941cf260b96d5f87e4453d57072b Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Wed, 2 Aug 2017 08:02:15 -0700 Subject: [PATCH] Fix typo in migration constraint resolution Fixes #6846 // FREEBIE --- src/org/thoughtcrime/securesms/database/DatabaseFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/database/DatabaseFactory.java b/src/org/thoughtcrime/securesms/database/DatabaseFactory.java index 6239466064..505e4b02eb 100644 --- a/src/org/thoughtcrime/securesms/database/DatabaseFactory.java +++ b/src/org/thoughtcrime/securesms/database/DatabaseFactory.java @@ -1007,7 +1007,7 @@ public class DatabaseFactory { db.update("recipient_preferences", values, "_id = ?", new String[] {String.valueOf(id)}); } catch (SQLiteConstraintException e) { Log.w(TAG, e); - db.delete("recipient_preference", "_id = ?", new String[] {String.valueOf(id)}); + db.delete("recipient_preferences", "_id = ?", new String[] {String.valueOf(id)}); } }