mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-26 17:43:11 +01: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
@ -165,7 +165,7 @@ class OnboardingViewModel @AssistedInject constructor(
|
|||||||
is OnboardingAction.ProfilePictureSelected -> handleProfilePictureSelected(action)
|
is OnboardingAction.ProfilePictureSelected -> handleProfilePictureSelected(action)
|
||||||
OnboardingAction.SaveSelectedProfilePicture -> updateProfilePicture()
|
OnboardingAction.SaveSelectedProfilePicture -> updateProfilePicture()
|
||||||
is OnboardingAction.PostViewEvent -> _viewEvents.post(action.viewEvent)
|
is OnboardingAction.PostViewEvent -> _viewEvents.post(action.viewEvent)
|
||||||
OnboardingAction.StopEmailValidationCheck -> currentJob = null
|
OnboardingAction.StopEmailValidationCheck -> cancelWaitForEmailValidation()
|
||||||
}.exhaustive
|
}.exhaustive
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -915,6 +915,10 @@ class OnboardingViewModel @AssistedInject constructor(
|
|||||||
private fun completePersonalization() {
|
private fun completePersonalization() {
|
||||||
_viewEvents.post(OnboardingViewEvents.OnPersonalizationComplete)
|
_viewEvents.post(OnboardingViewEvents.OnPersonalizationComplete)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun cancelWaitForEmailValidation() {
|
||||||
|
currentJob = null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun LoginMode.supportsSignModeScreen(): Boolean {
|
private fun LoginMode.supportsSignModeScreen(): Boolean {
|
||||||
|
Loading…
Reference in New Issue
Block a user