diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityHeaderButton.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityHeaderButton.qml index 79f421e0eb..60270456f9 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityHeaderButton.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityHeaderButton.qml @@ -56,7 +56,14 @@ Button { visible: enabled cursorShape: Qt.PointingHandCursor anchors.fill: parent - onPressed: communityProfilePopup.open(); + onPressed: { + communityProfilePopup.communityId = chatsModel.communities.activeCommunity.id; + communityProfilePopup.name = chatsModel.communities.activeCommunity.name; + communityProfilePopup.description = chatsModel.communities.activeCommunity.description; + communityProfilePopup.access = chatsModel.communities.activeCommunity.access; + communityProfilePopup.nbMembers = chatsModel.communities.activeCommunity.nbMembers; + communityProfilePopup.open(); + } hoverEnabled: true onExited: { btnBackground.color = Style.current.transparent diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityWelcomeBanner.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityWelcomeBanner.qml index e3e391b9fa..3a4b6d4a98 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityWelcomeBanner.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityWelcomeBanner.qml @@ -86,6 +86,13 @@ Rectangle { anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.bottom anchors.bottomMargin: Style.current.padding - onClicked: communityProfilePopup.open() + onClicked: { + communityProfilePopup.communityId = chatsModel.communities.activeCommunity.id; + communityProfilePopup.name = chatsModel.communities.activeCommunity.name; + communityProfilePopup.description = chatsModel.communities.activeCommunity.description; + communityProfilePopup.access = chatsModel.communities.activeCommunity.access; + communityProfilePopup.nbMembers = chatsModel.communities.activeCommunity.nbMembers; + communityProfilePopup.open() + } } }