fix(Communities): remove context menu option to leave channel
Community channels can't be left, only muted. Closes #2273
This commit is contained in:
parent
dcb0f4dce9
commit
35c63418e2
|
@ -107,9 +107,12 @@ PopupMenu {
|
|||
onTriggered: chatsModel.clearChatHistoryByIndex(channelContextMenu.channelIndex)
|
||||
}
|
||||
|
||||
Separator {}
|
||||
Separator {
|
||||
visible: deleteAction.enabled
|
||||
}
|
||||
|
||||
Action {
|
||||
id: deleteAction
|
||||
text: {
|
||||
if (channelContextMenu.contextChannel.chatType === Constants.chatTypeOneToOne) {
|
||||
//% "Delete chat"
|
||||
|
@ -131,6 +134,7 @@ PopupMenu {
|
|||
icon.width: 16
|
||||
icon.height: 16
|
||||
onTriggered: chatsModel.leaveChatByIndex(channelContextMenu.channelIndex)
|
||||
enabled: !chatsModel.communities.activeCommunity.active
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue