Change the way we do not delete the crypto database.
This commit is contained in:
parent
6255a78145
commit
f03bd282e7
1 changed files with 2 additions and 2 deletions
|
|
@ -645,9 +645,9 @@ class RustMatrixClient(
|
|||
// Delete the folder and all its content
|
||||
sessionPaths.fileDirectory.deleteRecursively()
|
||||
} else {
|
||||
// Delete only the state.db file
|
||||
// Do not delete the crypto database files.
|
||||
sessionPaths.fileDirectory.listFiles().orEmpty()
|
||||
.filter { it.name.contains("matrix-sdk-state") }
|
||||
.filterNot { it.name.contains("matrix-sdk-crypto") }
|
||||
.forEach { file ->
|
||||
Timber.w("Deleting file ${file.name}...")
|
||||
file.safeDelete()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue