fix(Community): leave community from Community profile popup

This commit is contained in:
Jonathan Rainville 2021-05-04 11:03:41 -04:00 committed by Iuri Matias
parent d2b6bf9310
commit 17b3a44458
2 changed files with 2 additions and 3 deletions

View File

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

View File

@ -229,6 +229,7 @@ Item {
label: qsTrId("leave-community")
iconName: "leave"
type: globalSettings.theme === Universal.Dark ? "secondary" : "primary"
onClicked: chatsModel.communities.leaveCommunity(communityId)
}
}
}