mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Change the way we do not delete the crypto database.
This commit is contained in:
+2
-2
@@ -645,9 +645,9 @@ class RustMatrixClient(
|
|||||||
// Delete the folder and all its content
|
// Delete the folder and all its content
|
||||||
sessionPaths.fileDirectory.deleteRecursively()
|
sessionPaths.fileDirectory.deleteRecursively()
|
||||||
} else {
|
} else {
|
||||||
// Delete only the state.db file
|
// Do not delete the crypto database files.
|
||||||
sessionPaths.fileDirectory.listFiles().orEmpty()
|
sessionPaths.fileDirectory.listFiles().orEmpty()
|
||||||
.filter { it.name.contains("matrix-sdk-state") }
|
.filterNot { it.name.contains("matrix-sdk-crypto") }
|
||||||
.forEach { file ->
|
.forEach { file ->
|
||||||
Timber.w("Deleting file ${file.name}...")
|
Timber.w("Deleting file ${file.name}...")
|
||||||
file.safeDelete()
|
file.safeDelete()
|
||||||
|
|||||||
Reference in New Issue
Block a user