From 17b3a444589725f1723bda8549623e14a0277b2d Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 4 May 2021 11:03:41 -0400 Subject: [PATCH] fix(Community): leave community from Community profile popup --- ui/app/AppLayouts/Chat/CommunityComponents/CommunityList.qml | 4 +--- .../CommunityComponents/CommunityProfilePopupOverview.qml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityList.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityList.qml index fa854109db..9511d7b82b 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityList.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityList.qml @@ -65,9 +65,7 @@ ListView { icon.source: "../../../img/arrow-left.svg" icon.width: 12 icon.height: 9 - onTriggered: { - chatsModel.communities.leaveCommunity(commnunityMenu.communityId) - } + onTriggered: chatsModel.communities.leaveCommunity(commnunityMenu.communityId) } } } diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupOverview.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupOverview.qml index 44bbcdb674..aa60aaa301 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupOverview.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupOverview.qml @@ -229,6 +229,7 @@ Item { label: qsTrId("leave-community") iconName: "leave" type: globalSettings.theme === Universal.Dark ? "secondary" : "primary" + onClicked: chatsModel.communities.leaveCommunity(communityId) } } }