only allow leaving if group chat
This commit is contained in:
parent
521240cfd6
commit
4e37fb70f1
1 changed files with 1 additions and 1 deletions
|
|
@ -373,7 +373,7 @@ ListView {
|
||||||
IconLabelButton {
|
IconLabelButton {
|
||||||
//: "leave"
|
//: "leave"
|
||||||
text: qsTr("chat_room_leave")
|
text: qsTr("chat_room_leave")
|
||||||
visible: mainItem.currentChatGui && !mainItem.currentChatGui.core.isReadOnly
|
visible: mainItem.currentChatGui && !mainItem.currentChatGui.core.isReadOnly && mainItem.currentChatGui.core.isGroupChat
|
||||||
icon.source: AppIcons.trashCan
|
icon.source: AppIcons.trashCan
|
||||||
spacing: Math.round(10 * DefaultStyle.dp)
|
spacing: Math.round(10 * DefaultStyle.dp)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue