fix(MessageContextMenuView): "Copy message" action visible in emoji reactions and profile clicks
Fixes #9295
This commit is contained in:
parent
f2549fc1ff
commit
878a7ba657
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue