From c73409b9d238cf8782265fca30655820fe9432bd Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Fri, 22 May 2020 13:47:51 +1000 Subject: [PATCH] Fix database reset --- src/org/thoughtcrime/securesms/ApplicationContext.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/thoughtcrime/securesms/ApplicationContext.java b/src/org/thoughtcrime/securesms/ApplicationContext.java index 8fde91e378..c38104a48e 100644 --- a/src/org/thoughtcrime/securesms/ApplicationContext.java +++ b/src/org/thoughtcrime/securesms/ApplicationContext.java @@ -556,6 +556,9 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc TextSecurePreferences.clearAll(this); TextSecurePreferences.setWasUnlinked(this, wasUnlinked); MasterSecretUtil.clear(this); + if (!deleteDatabase("signal.db")) { + Log.d("Loki", "Failed to delete database."); + } new Handler().postDelayed(this::restartApplication, 200); }