mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
Fix database reset
This commit is contained in:
parent
a7b94d188f
commit
c73409b9d2
@ -556,6 +556,9 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
|
|||||||
TextSecurePreferences.clearAll(this);
|
TextSecurePreferences.clearAll(this);
|
||||||
TextSecurePreferences.setWasUnlinked(this, wasUnlinked);
|
TextSecurePreferences.setWasUnlinked(this, wasUnlinked);
|
||||||
MasterSecretUtil.clear(this);
|
MasterSecretUtil.clear(this);
|
||||||
|
if (!deleteDatabase("signal.db")) {
|
||||||
|
Log.d("Loki", "Failed to delete database.");
|
||||||
|
}
|
||||||
new Handler().postDelayed(this::restartApplication, 200);
|
new Handler().postDelayed(this::restartApplication, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user