fix: use ConfirmationDialog when unblocking users

We've introduced a bug in https://github.com/status-im/nim-status-client/commit/8fd28dfa where a
non-existing `UnblockContactConfirmationDialog` usage was added.
This commit changes it to be a standard `ConfirmationDialog` to make the application compile
again.
This commit is contained in:
Pascal Precht 2020-12-07 13:28:43 +01:00 committed by Pascal Precht
parent 5e422691e3
commit 7210bb1370
1 changed files with 3 additions and 4 deletions

View File

@ -154,9 +154,10 @@ ModalPopup {
}
}
UnblockContactConfirmationDialog {
ConfirmationDialog {
id: unblockContactConfirmationDialog
onUnblockButtonClicked: {
title: qsTr("Unblock user")
onConfirmButtonClicked: {
profileModel.unblockContact(fromAuthor)
unblockContactConfirmationDialog.close();
popup.close()
@ -396,8 +397,6 @@ ModalPopup {
anchors.bottom: parent.bottom
onClicked: {
if (isBlocked) {
unblockContactConfirmationDialog.contactName = userName;
unblockContactConfirmationDialog.contactAddress = fromAuthor;
unblockContactConfirmationDialog.open();
return;
}