only allow leaving if group chat

This commit is contained in:
Gaelle Braud 2025-07-29 15:10:04 +02:00
parent 521240cfd6
commit 4e37fb70f1

View file

@ -373,7 +373,7 @@ ListView {
IconLabelButton {
//: "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
spacing: Math.round(10 * DefaultStyle.dp)
Layout.fillWidth: true