From ff5e1654ec63924e28556c9d71e7cffe29595965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Mon, 28 Oct 2024 11:19:20 +0100 Subject: [PATCH] Unused hasAddedContacts property removed from multiple components --- ui/app/AppLayouts/Chat/views/ChatView.qml | 3 --- ui/app/AppLayouts/Communities/panels/WelcomeBannerPanel.qml | 1 - ui/app/AppLayouts/Communities/popups/CommunityProfilePopup.qml | 1 - ui/app/AppLayouts/Communities/views/CommunityColumnView.qml | 2 -- ui/app/AppLayouts/stores/RootStore.qml | 1 - ui/app/mainui/Popups.qml | 2 -- 6 files changed, 10 deletions(-) diff --git a/ui/app/AppLayouts/Chat/views/ChatView.qml b/ui/app/AppLayouts/Chat/views/ChatView.qml index 1e6f592839..1cdf883ac2 100644 --- a/ui/app/AppLayouts/Chat/views/ChatView.qml +++ b/ui/app/AppLayouts/Chat/views/ChatView.qml @@ -40,8 +40,6 @@ StatusSectionLayout { id: root property ContactsStore contactsStore - property bool hasAddedContacts: contactsStore.myContactsModel.count > 0 - property SharedStores.RootStore sharedRootStore property SharedStores.UtilsStore utilsStore property ChatStores.RootStore rootStore @@ -307,7 +305,6 @@ StatusSectionLayout { walletAssetsStore: root.walletAssetsStore currencyStore: root.currencyStore emojiPopup: root.emojiPopup - hasAddedContacts: root.hasAddedContacts isPendingOwnershipRequest: root.isPendingOwnershipRequest onInfoButtonClicked: root.communityInfoButtonClicked() onManageButtonClicked: root.communityManageButtonClicked() diff --git a/ui/app/AppLayouts/Communities/panels/WelcomeBannerPanel.qml b/ui/app/AppLayouts/Communities/panels/WelcomeBannerPanel.qml index 1921a7f9a2..52b358e48d 100644 --- a/ui/app/AppLayouts/Communities/panels/WelcomeBannerPanel.qml +++ b/ui/app/AppLayouts/Communities/panels/WelcomeBannerPanel.qml @@ -17,7 +17,6 @@ Rectangle { property var activeCommunity property RootStore store property var communitySectionModule - property bool hasAddedContacts signal manageCommunityClicked() diff --git a/ui/app/AppLayouts/Communities/popups/CommunityProfilePopup.qml b/ui/app/AppLayouts/Communities/popups/CommunityProfilePopup.qml index 91832968f7..dba1655e56 100644 --- a/ui/app/AppLayouts/Communities/popups/CommunityProfilePopup.qml +++ b/ui/app/AppLayouts/Communities/popups/CommunityProfilePopup.qml @@ -15,7 +15,6 @@ StatusModal { id: root property var community - property bool hasAddedContacts property var communitySectionModule onClosed: { diff --git a/ui/app/AppLayouts/Communities/views/CommunityColumnView.qml b/ui/app/AppLayouts/Communities/views/CommunityColumnView.qml index cd7630ca01..8f68cdc600 100644 --- a/ui/app/AppLayouts/Communities/views/CommunityColumnView.qml +++ b/ui/app/AppLayouts/Communities/views/CommunityColumnView.qml @@ -42,7 +42,6 @@ Item { property CommunitiesStores.CommunitiesStore communitiesStore required property WalletStores.WalletAssetsStore walletAssetsStore required property CurrenciesStore currencyStore - property bool hasAddedContacts: false property var communityData property int joinedMembersCount property alias createChannelPopup: createChannelPopup @@ -411,7 +410,6 @@ Item { WelcomeBannerPanel { activeCommunity: communityData store: root.store - hasAddedContacts: root.hasAddedContacts communitySectionModule: root.communitySectionModule onManageCommunityClicked: root.manageButtonClicked() } diff --git a/ui/app/AppLayouts/stores/RootStore.qml b/ui/app/AppLayouts/stores/RootStore.qml index a18d184ff5..7905aff4e8 100644 --- a/ui/app/AppLayouts/stores/RootStore.qml +++ b/ui/app/AppLayouts/stores/RootStore.qml @@ -154,7 +154,6 @@ QtObject { property ProfileStores.ContactsStore contactStore: profileSectionStore.contactsStore property ProfileStores.PrivacyStore privacyStore: profileSectionStore.privacyStore property ProfileStores.MessagingStore messagingStore: profileSectionStore.messagingStore - property bool hasAddedContacts: contactStore.myContactsModel.count > 0 property real volume: !!appSettings ? appSettings.volume * 0.01 : 0.5 property bool notificationSoundsEnabled: !!appSettings ? appSettings.notificationSoundsEnabled : true diff --git a/ui/app/mainui/Popups.qml b/ui/app/mainui/Popups.qml index bf7497bd1c..30dc618359 100644 --- a/ui/app/mainui/Popups.qml +++ b/ui/app/mainui/Popups.qml @@ -569,8 +569,6 @@ QtObject { id: communityProfilePopup CommunityProfilePopup { - hasAddedContacts: rootStore.hasAddedContacts - onClosed: destroy() } },