From 6207aab19dcd0a73d84c2850e77423eb0221523e Mon Sep 17 00:00:00 2001 From: Dominic Fischer Date: Mon, 9 Nov 2020 17:20:23 +0000 Subject: [PATCH] Remove cancellation handling Signed-off-by: Dominic Fischer --- .../account/deactivation/DeactivateAccountViewModel.kt | 3 --- 1 file changed, 3 deletions(-) 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 672caca556..211559c657 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 @@ -25,7 +25,6 @@ import com.squareup.inject.assisted.AssistedInject import im.vector.app.core.extensions.exhaustive import im.vector.app.core.platform.VectorViewModel import im.vector.app.core.platform.VectorViewModelAction -import kotlinx.coroutines.CancellationException import kotlinx.coroutines.launch import org.matrix.android.sdk.api.failure.isInvalidPassword import org.matrix.android.sdk.api.session.Session @@ -75,8 +74,6 @@ class DeactivateAccountViewModel @AssistedInject constructor(@Assisted private v session.deactivateAccount(action.password, action.eraseAllData) DeactivateAccountViewEvents.Done } catch (failure: Exception) { - if (failure is CancellationException) throw failure - if (failure.isInvalidPassword()) { DeactivateAccountViewEvents.InvalidPassword } else {