RoomPage: Fix selected text and hovered link in context menu

They were not forwarded to the menu.
Also, "isThread" argument is no longer there in the signal.
This commit is contained in:
Kai Uwe Broulik
2026-01-13 17:31:40 +01:00
committed by Joshua Goins
parent 4155e9116a
commit 7a2211f8e0

View File

@@ -349,7 +349,7 @@ Kirigami.Page {
});
}
function onShowDelegateMenu(parent: QtObject, eventId: string, author, messageComponentType, plainText: string, richText: string, mimeType: string, progressInfo, isThread: bool, selectedText: string, hoveredLink: string) {
function onShowDelegateMenu(parent: QtObject, eventId: string, author, messageComponentType, plainText: string, richText: string, mimeType: string, progressInfo, selectedText: string, hoveredLink: string) {
(delegateContextMenu.createObject(parent, {
author: author,
eventId: eventId,
@@ -357,6 +357,8 @@ Kirigami.Page {
mimeType: mimeType,
progressInfo: progressInfo,
messageComponentType: messageComponentType,
selectedText,
hoveredLink,
}) as DelegateContextMenu).popup();
}