From c454a4942e39729a5194a14e0c6e25f1636a43e0 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Fri, 27 Dec 2024 13:23:47 +0100 Subject: [PATCH] MessageDelegateContextMenu: Fix "Edit" action not showing There's no such thing as Emote or Message anymore, it's all "Text". Matches IsEditableRole of MessageEventModel. While at it, also clear threadId, which is what the Edit quick button also does. --- src/qml/MessageDelegateContextMenu.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qml/MessageDelegateContextMenu.qml b/src/qml/MessageDelegateContextMenu.qml index 25a65f654..42695e8af 100644 --- a/src/qml/MessageDelegateContextMenu.qml +++ b/src/qml/MessageDelegateContextMenu.qml @@ -39,8 +39,9 @@ DelegateContextMenu { onTriggered: { currentRoom.editCache.editId = eventId; currentRoom.mainCache.replyId = ""; + currentRoom.mainCache.threadId = ""; } - visible: author.isLocalMember && (root.messageComponentType === MessageComponentType.Emote || root.messageComponentType === MessageComponentType.Message) + visible: root.author.isLocalMember && root.messageComponentType === MessageComponentType.Text }, DelegateContextMenu.ReplyMessageAction {}, Kirigami.Action {