Merge pull request #1653 from vector-im/feature/bma/secureBackupSdk

SecureBackup: update matrix sdk module.
This commit is contained in:
Benoit Marty 2023-10-27 09:35:19 +02:00 committed by GitHub
commit 22c7b587a9
17 changed files with 518 additions and 11 deletions

View file

@ -142,7 +142,7 @@ class PinUnlockPresenter @Inject constructor(
private fun CoroutineScope.signOut(signOutAction: MutableState<Async<String?>>) = launch {
suspend {
matrixClient.logout()
matrixClient.logout(ignoreSdkError = true)
}.runCatchingUpdatingState(signOutAction)
}
}

View file

@ -58,7 +58,7 @@ class DefaultLogoutPreferencePresenter @Inject constructor(private val matrixCli
private fun CoroutineScope.logout(logoutAction: MutableState<Async<String?>>) = launch {
suspend {
matrixClient.logout()
matrixClient.logout(false /* TODO */)
}.runCatchingUpdatingState(logoutAction)
}
}