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:
Joshua Goins
2026-01-14 21:32:04 -05:00
parent f5c991c55c
commit c15860cac3
4 changed files with 5 additions and 2 deletions

View File

@@ -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: {