mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 18:35:40 +03:00
extracting named function out for cancelling the email validation job, giving more context to the currentjob=null
This commit is contained in:
parent
192d1c4f2d
commit
abf62aff47
1 changed files with 5 additions and 1 deletions
|
@ -165,7 +165,7 @@ class OnboardingViewModel @AssistedInject constructor(
|
|||
is OnboardingAction.ProfilePictureSelected -> handleProfilePictureSelected(action)
|
||||
OnboardingAction.SaveSelectedProfilePicture -> updateProfilePicture()
|
||||
is OnboardingAction.PostViewEvent -> _viewEvents.post(action.viewEvent)
|
||||
OnboardingAction.StopEmailValidationCheck -> currentJob = null
|
||||
OnboardingAction.StopEmailValidationCheck -> cancelWaitForEmailValidation()
|
||||
}.exhaustive
|
||||
}
|
||||
|
||||
|
@ -915,6 +915,10 @@ class OnboardingViewModel @AssistedInject constructor(
|
|||
private fun completePersonalization() {
|
||||
_viewEvents.post(OnboardingViewEvents.OnPersonalizationComplete)
|
||||
}
|
||||
|
||||
private fun cancelWaitForEmailValidation() {
|
||||
currentJob = null
|
||||
}
|
||||
}
|
||||
|
||||
private fun LoginMode.supportsSignModeScreen(): Boolean {
|
||||
|
|
Loading…
Reference in a new issue