Browse Source

Fix sliding sync proxy login not working after native SS failure (#3489)

pull/3490/head
Jorge Martin Espinosa 1 month ago committed by GitHub
parent
commit
d5ac6dabdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/auth/RustMatrixAuthenticationService.kt

3
libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/auth/RustMatrixAuthenticationService.kt

@ -42,6 +42,7 @@ import kotlinx.coroutines.flow.StateFlow @@ -42,6 +42,7 @@ import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.withContext
import org.matrix.rustcomponents.sdk.Client
import org.matrix.rustcomponents.sdk.ClientBuildException
import org.matrix.rustcomponents.sdk.ClientBuilder
import org.matrix.rustcomponents.sdk.HumanQrLoginException
import org.matrix.rustcomponents.sdk.OidcConfiguration
@ -292,7 +293,7 @@ class RustMatrixAuthenticationService @Inject constructor( @@ -292,7 +293,7 @@ class RustMatrixAuthenticationService @Inject constructor(
)
.config()
.build()
} catch (e: HumanQrLoginException.SlidingSyncNotAvailable) {
} catch (e: ClientBuildException.SlidingSyncVersion) {
Timber.e(e, "Failed to create client with simplified sliding sync, trying with Proxy now")
}
}

Loading…
Cancel
Save