From 854a604fbe891114d9b2ef8764221cbd0a25cda0 Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Thu, 22 Sep 2022 10:32:03 +0200 Subject: [PATCH] Fix missing loading ViewEvent --- .../account/deactivation/DeactivateAccountViewModel.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/settings/account/deactivation/DeactivateAccountViewModel.kt b/vector/src/main/java/im/vector/app/features/settings/account/deactivation/DeactivateAccountViewModel.kt index c5d71db6da..dcc584e6c3 100644 --- a/vector/src/main/java/im/vector/app/features/settings/account/deactivation/DeactivateAccountViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/settings/account/deactivation/DeactivateAccountViewModel.kt @@ -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)