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)
close()
}
enabled: root.messageContentType === Constants.messageContentType.messageType
enabled: root.messageContentType === Constants.messageContentType.messageType && !root.isProfile && !emojiContainer.visible
}
StatusAction {
id: copyMessageIdAction
text: qsTr("Copy Message Id")
icon.name: "copy"
enabled: root.isDebugEnabled && !pinnedPopup
enabled: root.isDebugEnabled && !root.isProfile && !root.pinnedPopup && !emojiContainer.visible
onTriggered: {
root.store.copyToClipboard(root.messageId)
close()