Fix database reset

This commit is contained in:
nielsandriesse 2020-05-22 13:47:51 +10:00
parent a7b94d188f
commit c73409b9d2

View File

@ -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);
}