fix(MessageContextMenuView): "Copy message" action visible in emoji reactions and profile clicks

Fixes #9295
This commit is contained in:
Lukáš Tinkl 2023-01-25 20:58:09 +01:00 committed by Lukáš Tinkl
parent f2549fc1ff
commit 878a7ba657
1 changed files with 2 additions and 2 deletions

View File

@ -365,14 +365,14 @@ StatusMenu {
root.store.copyToClipboard(root.unparsedText) root.store.copyToClipboard(root.unparsedText)
close() close()
} }
enabled: root.messageContentType === Constants.messageContentType.messageType enabled: root.messageContentType === Constants.messageContentType.messageType && !root.isProfile && !emojiContainer.visible
} }
StatusAction { StatusAction {
id: copyMessageIdAction id: copyMessageIdAction
text: qsTr("Copy Message Id") text: qsTr("Copy Message Id")
icon.name: "copy" icon.name: "copy"
enabled: root.isDebugEnabled && !pinnedPopup enabled: root.isDebugEnabled && !root.isProfile && !root.pinnedPopup && !emojiContainer.visible
onTriggered: { onTriggered: {
root.store.copyToClipboard(root.messageId) root.store.copyToClipboard(root.messageId)
close() close()