From 20397480723f12fccb5305c4245e19a651741040 Mon Sep 17 00:00:00 2001 From: Alexandra Betouni Date: Mon, 29 Nov 2021 17:55:30 +0200 Subject: [PATCH] fix(desktop/chat): stickers pack popup not opened Fixed can't open a sticker pack when clicking a sticker in a chat. Closes #4203 --- ui/imports/shared/controls/chat/MessageMouseArea.qml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ui/imports/shared/controls/chat/MessageMouseArea.qml b/ui/imports/shared/controls/chat/MessageMouseArea.qml index 9a72f6fd0d..7c3a266246 100644 --- a/ui/imports/shared/controls/chat/MessageMouseArea.qml +++ b/ui/imports/shared/controls/chat/MessageMouseArea.qml @@ -7,11 +7,12 @@ MouseArea { z: 50 enabled: !placeholderMessage - property bool isHovered: false - property bool isSticker: false - property bool placeholderMessage: false +//TODO remove dynamic scoping +// property bool isHovered: false +// property bool isSticker: false +// property bool placeholderMessage: false +// property var isMessageActive property bool isActivityCenterMessage: false - property var isMessageActive property var messageContextMenu signal setMessageActive(string messageId, bool active) signal clickMessage(bool isProfileClick, bool isSticker, bool isImage) @@ -27,7 +28,6 @@ MouseArea { if (mouse.button === Qt.RightButton) { if (!!messageContextMenu) { // Set parent, X & Y positions for the messageContextMenu - //TODO remove dynamic scoping messageContextMenu.parent = root messageContextMenu.setXPosition = function() { return (mouse.x)}; messageContextMenu.setYPosition = function() { return (mouse.y)}; @@ -38,7 +38,6 @@ MouseArea { } return; } - //TODO remove dynamic scoping if (mouse.button === Qt.LeftButton && isSticker && stickersLoaded) { if (isHovered) { isHovered = false;