mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 20:09:27 +03:00
only showing the use case screen for the sign up flow
This commit is contained in:
parent
3d4caeaa75
commit
8c67cc0076
1 changed files with 11 additions and 7 deletions
|
@ -157,21 +157,25 @@ class OnboardingViewModel @AssistedInject constructor(
|
||||||
if (homeServerConnectionConfig == null) {
|
if (homeServerConnectionConfig == null) {
|
||||||
// Url is invalid, in this case, just use the regular flow
|
// Url is invalid, in this case, just use the regular flow
|
||||||
Timber.w("Url from config url was invalid: $configUrl")
|
Timber.w("Url from config url was invalid: $configUrl")
|
||||||
continueToPageAfterSplash()
|
continueToPageAfterSplash(onboardingFlow)
|
||||||
} else {
|
} else {
|
||||||
getLoginFlow(homeServerConnectionConfig, ServerType.Other)
|
getLoginFlow(homeServerConnectionConfig, ServerType.Other)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
continueToPageAfterSplash()
|
continueToPageAfterSplash(onboardingFlow)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun continueToPageAfterSplash() {
|
private fun continueToPageAfterSplash(onboardingFlow: OnboardingFlow) {
|
||||||
val nextOnboardingStep = if (vectorFeatures.isOnboardingUseCaseEnabled()) {
|
val nextOnboardingStep = when (onboardingFlow) {
|
||||||
|
OnboardingFlow.SignUp -> if (vectorFeatures.isOnboardingUseCaseEnabled()) {
|
||||||
OnboardingViewEvents.OpenUseCaseSelection
|
OnboardingViewEvents.OpenUseCaseSelection
|
||||||
} else {
|
} else {
|
||||||
OnboardingViewEvents.OpenServerSelection
|
OnboardingViewEvents.OpenServerSelection
|
||||||
}
|
}
|
||||||
|
OnboardingFlow.SignIn,
|
||||||
|
OnboardingFlow.SignInSignUp -> OnboardingViewEvents.OpenServerSelection
|
||||||
|
}
|
||||||
_viewEvents.post(nextOnboardingStep)
|
_viewEvents.post(nextOnboardingStep)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue