fixing sign in needing registration to be enabled

- caused by the sign in flow using the registration homeserver validation, fixed by posting the sign in mode event directly
This commit is contained in:
Adam Brown 2022-05-04 11:34:21 +01:00
parent dcc20bbfeb
commit f42e6c0a3c
2 changed files with 2 additions and 1 deletions

1
changelog.d/5874.bugfix Normal file
View File

@ -0,0 +1 @@
Fixes sign in via other requiring homeserver registration to be enabled

View File

@ -645,7 +645,7 @@ class OnboardingViewModel @AssistedInject constructor(
when (awaitState().onboardingFlow) {
OnboardingFlow.SignIn -> {
updateSignMode(SignMode.SignIn)
internalRegisterAction(RegisterAction.StartRegistration, ::emitFlowResultViewEvent)
_viewEvents.post(OnboardingViewEvents.OnSignModeSelected(SignMode.SignIn))
}
OnboardingFlow.SignUp -> {
updateSignMode(SignMode.SignUp)