Upgrade SDK version to 25.02.26 (#4305)

* Upgrade SDK version to 25.02.26

* Remove OIDC URL result from logout, the SDK no longer provides it

* Handle room creation and destruction in a better way

* Remove `onSuccessLogout`
This commit is contained in:
Jorge Martin Espinosa 2025-02-26 10:04:49 +01:00 committed by GitHub
parent efb5accd57
commit dbb1de146b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 46 additions and 230 deletions

View file

@ -493,8 +493,7 @@ class RustMatrixClient(
deleteSessionDirectory(deleteCryptoDb = false)
}
override suspend fun logout(userInitiated: Boolean, ignoreSdkError: Boolean): String? {
var result: String? = null
override suspend fun logout(userInitiated: Boolean, ignoreSdkError: Boolean) {
sessionCoroutineScope.cancel()
// Remove current delegate so we don't receive an auth error
clientDelegateTaskHandle?.cancelAndDestroy()
@ -502,7 +501,7 @@ class RustMatrixClient(
withContext(sessionDispatcher) {
if (userInitiated) {
try {
result = innerClient.logout()
innerClient.logout()
} catch (failure: Throwable) {
if (ignoreSdkError) {
Timber.e(failure, "Fail to call logout on HS. Still delete local files.")
@ -521,7 +520,6 @@ class RustMatrixClient(
sessionStore.removeSession(sessionId.value)
}
}
return result
}
override fun canDeactivateAccount(): Boolean {