chore: unused, outdated code removed from ContactsView

Closes: #16650
This commit is contained in:
Michał Cieślak 2024-10-31 10:16:05 +01:00 committed by Michał
parent ba80ba97f7
commit c009321ba2
1 changed files with 0 additions and 54 deletions

View File

@ -126,14 +126,6 @@ SettingsContentBase {
text: qsTr("Pending Requests") text: qsTr("Pending Requests")
badge.value: root.contactsStore.receivedContactRequestsModel.count 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 { StatusTabButton {
id: blockedBtn id: blockedBtn
objectName: "ContactsView_Blocked_Button" 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 // BLOCKED
ContactsListPanel { ContactsListPanel {
Layout.fillWidth: true Layout.fillWidth: true