mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
giving arugment a proper name
This commit is contained in:
parent
86c9e60129
commit
096db6c35d
1 changed files with 6 additions and 6 deletions
|
@ -638,18 +638,18 @@ class OnboardingViewModel @AssistedInject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
private fun onAuthenticationStartError(it: Throwable, trigger: OnboardingAction.HomeServerChange) {
|
||||
private fun onAuthenticationStartError(error: Throwable, trigger: OnboardingAction.HomeServerChange) {
|
||||
when {
|
||||
it.isHomeserverUnavailable() && applicationContext.inferNoConnectivity(buildMeta) -> _viewEvents.post(
|
||||
OnboardingViewEvents.Failure(it)
|
||||
error.isHomeserverUnavailable() && applicationContext.inferNoConnectivity(buildMeta) -> _viewEvents.post(
|
||||
OnboardingViewEvents.Failure(error)
|
||||
)
|
||||
deeplinkUrlIsUnavailable(it, trigger) -> _viewEvents.post(
|
||||
deeplinkUrlIsUnavailable(error, trigger) -> _viewEvents.post(
|
||||
OnboardingViewEvents.DeeplinkAuthenticationFailure(
|
||||
retryAction = (trigger as OnboardingAction.HomeServerChange.SelectHomeServer).resetToDefaultUrl()
|
||||
)
|
||||
)
|
||||
else -> _viewEvents.post(
|
||||
OnboardingViewEvents.Failure(it)
|
||||
else -> _viewEvents.post(
|
||||
OnboardingViewEvents.Failure(error)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue