Fix missing loading ViewEvent

This commit is contained in:
Maxime NATUREL 2022-09-22 10:32:03 +02:00
parent 99c2088d0e
commit 854a604fbe

View file

@ -52,7 +52,10 @@ class DeactivateAccountViewModel @AssistedInject constructor(
override fun handle(action: DeactivateAccountAction) {
when (action) {
is DeactivateAccountAction.DeactivateAccount -> handleDeactivateAccount(action)
DeactivateAccountAction.SsoAuthDone -> pendingAuthHandler.ssoAuthDone()
DeactivateAccountAction.SsoAuthDone -> {
_viewEvents.post(DeactivateAccountViewEvents.Loading())
pendingAuthHandler.ssoAuthDone()
}
is DeactivateAccountAction.PasswordAuthDone -> {
_viewEvents.post(DeactivateAccountViewEvents.Loading())
pendingAuthHandler.passwordAuthDone(action.password)