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:
committed by
Joshua Goins
parent
4155e9116a
commit
7a2211f8e0
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user