mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-05 12:54:35 +00:00
Close the client before removing its data. Probably safer.
This commit is contained in:
committed by
Benoit Marty
parent
979ebe4adb
commit
f9423fc15e
+2
-2
@@ -354,9 +354,9 @@ class RustMatrixClient constructor(
|
|||||||
} catch (failure: Throwable) {
|
} catch (failure: Throwable) {
|
||||||
Timber.e(failure, "Fail to call logout on HS. Still delete local files.")
|
Timber.e(failure, "Fail to call logout on HS. Still delete local files.")
|
||||||
}
|
}
|
||||||
baseDirectory.deleteSessionDirectory(userID = client.userId(), deleteCryptoDb = true)
|
|
||||||
sessionStore.removeSession(client.userId())
|
|
||||||
close()
|
close()
|
||||||
|
baseDirectory.deleteSessionDirectory(userID = sessionId.value, deleteCryptoDb = true)
|
||||||
|
sessionStore.removeSession(sessionId.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun loadUserDisplayName(): Result<String> = withContext(dispatchers.io) {
|
override suspend fun loadUserDisplayName(): Result<String> = withContext(dispatchers.io) {
|
||||||
|
|||||||
Reference in New Issue
Block a user