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.
This commit is contained in:
Kai Uwe Broulik
2024-12-27 13:23:47 +01:00
parent 44cd52af6c
commit c454a4942e

View File

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