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) } } }