mirror of
https://github.com/element-hq/element-android
synced 2024-11-25 02:45:37 +03:00
Remove cancellation handling
Signed-off-by: Dominic Fischer <dominicfischer7@gmail.com>
This commit is contained in:
parent
0da4ff7b02
commit
6207aab19d
1 changed files with 0 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue