diff --git a/ui/app/AppLayouts/Chat/CommunityColumn.qml b/ui/app/AppLayouts/Chat/CommunityColumn.qml index 2fd84e9425..cfc052a7c1 100644 --- a/ui/app/AppLayouts/Chat/CommunityColumn.qml +++ b/ui/app/AppLayouts/Chat/CommunityColumn.qml @@ -135,7 +135,7 @@ Rectangle { Loader { id: emptyViewAndSuggestionsLoader - active: !appSettings.hiddenCommunityWelcomeBanners.includes(chatsModel.communities.activeCommunity.id) && chatsModel.communities.activeCommunity.admin + active: chatsModel.communities.activeCommunity.admin && !appSettings.hiddenCommunityWelcomeBanners.includes(chatsModel.communities.activeCommunity.id) width: parent.width height: active ? item.height : 0 anchors.top: channelList.bottom @@ -146,7 +146,7 @@ Rectangle { } Loader { id: backUpBannerLoader - active: chatsModel.communities.activeCommunity.admin + active: chatsModel.communities.activeCommunity.admin && !appSettings.hiddenCommunityBackUpBanners.includes(chatsModel.communities.activeCommunity.id) width: parent.width height: active ? item.height : 0 anchors.top: emptyViewAndSuggestionsLoader.bottom diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/BackUpCommuntyBanner.qml b/ui/app/AppLayouts/Chat/CommunityComponents/BackUpCommuntyBanner.qml index 7d46225e11..6cec3edfb1 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/BackUpCommuntyBanner.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/BackUpCommuntyBanner.qml @@ -53,7 +53,12 @@ Rectangle { anchors.horizontalCenter: parent.horizontalCenter anchors.top: backUpText.bottom anchors.topMargin: Style.current.padding - onClicked: openPopup(transferOwnershipPopup, {privateKey: chatsModel.communities.exportComumnity()}) + onClicked: { + let hiddenBannerIds = appSettings.hiddenCommunityBackUpBanners + hiddenBannerIds.push(chatsModel.communities.activeCommunity.id) + appSettings.hiddenCommunityBackUpBanners = hiddenBannerIds + openPopup(transferOwnershipPopup, {privateKey: chatsModel.communities.exportComumnity()}) + } } } diff --git a/ui/app/AppMain.qml b/ui/app/AppMain.qml index 583970bcd5..5d67d7152c 100644 --- a/ui/app/AppMain.qml +++ b/ui/app/AppMain.qml @@ -117,6 +117,7 @@ RowLayout { property bool timelineEnabled: true property var recentEmojis: [] property var hiddenCommunityWelcomeBanners: [] + property var hiddenCommunityBackUpBanners: [] property real volume: 0.2 property int notificationSetting: Constants.notifyAllMessages property bool notificationSoundsEnabled: true