From 5455bdffb2e64f9e45cabfcb677a49fe1d75df43 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Thu, 25 May 2017 11:26:32 -0700 Subject: [PATCH] Make sure existing identity entries are approved in migration // FREEBIE --- src/org/thoughtcrime/securesms/database/DatabaseFactory.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/thoughtcrime/securesms/database/DatabaseFactory.java b/src/org/thoughtcrime/securesms/database/DatabaseFactory.java index c79197fca2..3c6b66e465 100644 --- a/src/org/thoughtcrime/securesms/database/DatabaseFactory.java +++ b/src/org/thoughtcrime/securesms/database/DatabaseFactory.java @@ -877,6 +877,8 @@ public class DatabaseFactory { db.execSQL("DROP INDEX archived_count_index"); db.execSQL("CREATE INDEX IF NOT EXISTS archived_count_index ON thread (archived, message_count)"); + + db.execSQL("UPDATE identities SET blocking_approval = '1'"); } db.setTransactionSuccessful();