From c009321ba2fa25075cac37cac9cc443642a4b1c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Thu, 31 Oct 2024 10:16:05 +0100 Subject: [PATCH] chore: unused, outdated code removed from ContactsView Closes: #16650 --- .../AppLayouts/Profile/views/ContactsView.qml | 54 ------------------- 1 file changed, 54 deletions(-) diff --git a/ui/app/AppLayouts/Profile/views/ContactsView.qml b/ui/app/AppLayouts/Profile/views/ContactsView.qml index 97ad956250..c5bcfe158b 100644 --- a/ui/app/AppLayouts/Profile/views/ContactsView.qml +++ b/ui/app/AppLayouts/Profile/views/ContactsView.qml @@ -126,14 +126,6 @@ SettingsContentBase { text: qsTr("Pending Requests") badge.value: root.contactsStore.receivedContactRequestsModel.count } - // Temporary commented until we provide appropriate flags on the `status-go` side to cover all sections. - // StatusTabButton { - // id: rejectedRequestsBtn - // width: implicitWidth - // enabled: root.contactsStore.receivedButRejectedContactRequestsModel.count > 0 || - // root.contactsStore.sentButRejectedContactRequestsModel.count > 0 - // btnText: qsTr("Rejected Requests") - // } StatusTabButton { id: blockedBtn objectName: "ContactsView_Blocked_Button" @@ -260,52 +252,6 @@ SettingsContentBase { } } - // Temporary commented until we provide appropriate flags on the `status-go` side to cover all sections. - // // REJECTED REQUESTS - // Item { - // Layout.fillWidth: true - // //Layout.fillHeight: true - - // ColumnLayout { - // //anchors.fill: parent - - // ContactsListPanel { - // Layout.fillWidth: true - // Layout.preferredHeight: root.height * 0.5 - // clip: true - // title: qsTr("Received") - // searchString: searchBox.text - // onOpenContactContextMenu: function (publicKey, name, icon) { - // root.openContextMenu(publicKey, name, icon) - // } - // contactsModel: root.contactsStore.receivedButRejectedContactRequestsModel - // panelUsage: Constants.contactsPanelUsage.rejectedReceivedContactRequest - - // onRejectionRemoved: { - // root.contactsStore.removeContactRequestRejection(publicKey) - // } - // } - - // ContactsListPanel { - // Layout.fillWidth: true - // Layout.preferredHeight: root.height * 0.5 - // clip: true - // title: qsTr("Sent") - // searchString: searchBox.text - // onOpenContactContextMenu: function (publicKey, name, icon) { - // root.openContextMenu(publicKey, name, icon) - // } - // contactsModel: root.contactsStore.sentButRejectedContactRequestsModel - // panelUsage: Constants.contactsPanelUsage.rejectedSentContactRequest - // } - - // Item { - // Layout.fillWidth: true - // Layout.fillHeight: true - // } - // } - // } - // BLOCKED ContactsListPanel { Layout.fillWidth: true