mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-09-28 07:51:42 +01:00
Clear dialog on delete account failure.
This commit is contained in:
@@ -81,6 +81,7 @@ class DeleteAccountViewModel(
|
||||
applyDeletionConfirmed()
|
||||
}
|
||||
DeleteAccountEvent.LaunchAppSettingsClicked -> {
|
||||
_state.update { it.copy(dialog = Dialog.None) }
|
||||
_actions.send(DeleteAccountAction.LaunchAppSettings)
|
||||
}
|
||||
DeleteAccountEvent.DialogDismissed -> {
|
||||
|
||||
@@ -266,6 +266,7 @@ class DeleteAccountViewModelTest {
|
||||
|
||||
viewModel.onEvent(DeleteAccountEvent.LaunchAppSettingsClicked)
|
||||
assertThat(actions).contains(DeleteAccountAction.LaunchAppSettings)
|
||||
assertThat(viewModel.state.value.dialog).isEqualTo(Dialog.None)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user