Improve dialog when un-ignoring user. Add title and change button labels

This commit is contained in:
Benoit Marty 2022-04-14 14:55:02 +02:00
parent fe0332957b
commit 04045d2b30

View file

@ -80,11 +80,12 @@ class VectorSettingsIgnoredUsersFragment @Inject constructor(
override fun onUserIdClicked(userId: String) {
MaterialAlertDialogBuilder(requireActivity())
.setTitle(R.string.room_participants_action_unignore_title)
.setMessage(getString(R.string.settings_unignore_user, userId))
.setPositiveButton(R.string.yes) { _, _ ->
.setPositiveButton(R.string.unignore) { _, _ ->
viewModel.handle(IgnoredUsersAction.UnIgnore(userId))
}
.setNegativeButton(R.string.no, null)
.setNegativeButton(R.string.action_cancel, null)
.show()
}