mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Fix sliding sync proxy login not working after native SS failure (#3489)
This commit is contained in:
committed by
GitHub
parent
79222439ae
commit
d5ac6dabdf
+2
-1
@@ -42,6 +42,7 @@ import kotlinx.coroutines.flow.StateFlow
|
|||||||
import kotlinx.coroutines.flow.first
|
import kotlinx.coroutines.flow.first
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
import org.matrix.rustcomponents.sdk.Client
|
import org.matrix.rustcomponents.sdk.Client
|
||||||
|
import org.matrix.rustcomponents.sdk.ClientBuildException
|
||||||
import org.matrix.rustcomponents.sdk.ClientBuilder
|
import org.matrix.rustcomponents.sdk.ClientBuilder
|
||||||
import org.matrix.rustcomponents.sdk.HumanQrLoginException
|
import org.matrix.rustcomponents.sdk.HumanQrLoginException
|
||||||
import org.matrix.rustcomponents.sdk.OidcConfiguration
|
import org.matrix.rustcomponents.sdk.OidcConfiguration
|
||||||
@@ -292,7 +293,7 @@ class RustMatrixAuthenticationService @Inject constructor(
|
|||||||
)
|
)
|
||||||
.config()
|
.config()
|
||||||
.build()
|
.build()
|
||||||
} catch (e: HumanQrLoginException.SlidingSyncNotAvailable) {
|
} catch (e: ClientBuildException.SlidingSyncVersion) {
|
||||||
Timber.e(e, "Failed to create client with simplified sliding sync, trying with Proxy now")
|
Timber.e(e, "Failed to create client with simplified sliding sync, trying with Proxy now")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user