Give DelegateContextMenu an actual room
This allows me to hide the "Reply" action for read-only rooms. Don't ask me how it even worked before, I don't know.
This commit is contained in:
@@ -159,7 +159,7 @@ KirigamiComponents.ConvergentContextMenu {
|
||||
|
||||
Kirigami.Action {
|
||||
id: replyAction
|
||||
visible: root.messageComponentType !== MessageComponentType.Other || NeoChatConfig.relateAnyEvent
|
||||
visible: !root.room.readOnly && (root.messageComponentType !== MessageComponentType.Other || NeoChatConfig.relateAnyEvent)
|
||||
text: i18nc("@action:inmenu", "Reply")
|
||||
icon.name: "mail-replied-symbolic"
|
||||
onTriggered: {
|
||||
|
||||
Reference in New Issue
Block a user