fix(ChatMessage): hide "edit" option when right click on sticker

Closes #5766
This commit is contained in:
Alexandra Betouni 2022-05-17 16:09:00 +03:00 committed by Alexandra Betouni
parent e49144d174
commit 6a8fa13b62
2 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,7 @@ StatusPopupMenu {
property bool pinnedPopup: false
property bool isDebugEnabled: false
property bool isEmoji: false
property bool isSticker: false
property bool hideEmojiPicker: true
property bool pinnedMessage: false
property bool canPin: false
@ -205,6 +206,7 @@ StatusPopupMenu {
enabled: root.isMyMessage &&
!root.hideEmojiPicker &&
!root.isEmoji &&
!root.isSticker &&
!root.isProfile &&
!root.pinnedPopup &&
!root.isRightClickOnImage

View File

@ -180,6 +180,7 @@ Column {
messageContextMenu.isProfile = !!isProfileClick
messageContextMenu.isRightClickOnImage = isRightClickOnImage
messageContextMenu.isEmoji = isEmoji
messageContextMenu.isSticker = isSticker
messageContextMenu.hideEmojiPicker = hideEmojiPicker
if(isReply){