From 7210bb13700181a07f5c32693895385fad23ebcf Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Mon, 7 Dec 2020 13:28:43 +0100 Subject: [PATCH] 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. --- ui/app/AppLayouts/Chat/components/ProfilePopup.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ui/app/AppLayouts/Chat/components/ProfilePopup.qml b/ui/app/AppLayouts/Chat/components/ProfilePopup.qml index 9683cb2e65..e11bb5da8b 100644 --- a/ui/app/AppLayouts/Chat/components/ProfilePopup.qml +++ b/ui/app/AppLayouts/Chat/components/ProfilePopup.qml @@ -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; }