Merge pull request #4973 from vector-im/feature/adm/ftue-other-sso-crash
Fixing onboarding crash when signing in/up on non `matrix.org` server with SSO
This commit is contained in:
commit
e8d71feef1
1
changelog.d/4969.bugfix
Normal file
1
changelog.d/4969.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fixes sign in/up crash when selecting ems and other server types which use SSO
|
@ -826,13 +826,17 @@ class OnboardingViewModel @AssistedInject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
withState {
|
withState {
|
||||||
when (it.onboardingFlow) {
|
if (it.serverType == ServerType.MatrixOrg) {
|
||||||
OnboardingFlow.SignIn -> handleUpdateSignMode(OnboardingAction.UpdateSignMode(SignMode.SignIn))
|
when (it.onboardingFlow) {
|
||||||
OnboardingFlow.SignUp -> handleUpdateSignMode(OnboardingAction.UpdateSignMode(SignMode.SignUp))
|
OnboardingFlow.SignIn -> handleUpdateSignMode(OnboardingAction.UpdateSignMode(SignMode.SignIn))
|
||||||
OnboardingFlow.SignInSignUp,
|
OnboardingFlow.SignUp -> handleUpdateSignMode(OnboardingAction.UpdateSignMode(SignMode.SignUp))
|
||||||
null -> {
|
OnboardingFlow.SignInSignUp,
|
||||||
_viewEvents.post(OnboardingViewEvents.OnLoginFlowRetrieved)
|
null -> {
|
||||||
|
_viewEvents.post(OnboardingViewEvents.OnLoginFlowRetrieved)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
_viewEvents.post(OnboardingViewEvents.OnLoginFlowRetrieved)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user