From 3c0b87bbcaa503b52516ea96ed5a674f9d377e42 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Wed, 30 Mar 2022 09:56:26 -0400 Subject: [PATCH] Fix possible backup crash due to foreign key constraint. --- .../org/thoughtcrime/securesms/backup/FullBackupImporter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/backup/FullBackupImporter.java b/app/src/main/java/org/thoughtcrime/securesms/backup/FullBackupImporter.java index 3a394119b..6e8b5236d 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/backup/FullBackupImporter.java +++ b/app/src/main/java/org/thoughtcrime/securesms/backup/FullBackupImporter.java @@ -77,7 +77,8 @@ public class FullBackupImporter extends FullBackupBase { "msl_message", "reaction", "notification_profile_schedule", - "notification_profile_allowed_members" + "notification_profile_allowed_members", + "story_sends" }; public static void importFile(@NonNull Context context, @NonNull AttachmentSecret attachmentSecret, @@ -293,6 +294,7 @@ public class FullBackupImporter extends FullBackupBase { String type = cursor.getString(1); if ("table".equals(type) && !name.startsWith("sqlite_")) { + Log.i(TAG, "Dropping table: " + name); db.execSQL("DROP TABLE IF EXISTS " + name); } }