Close the client before removing its data. Probably safer.
This commit is contained in:
parent
58860a9440
commit
1c06943530
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue