fix(desktop/chat): stickers pack popup not opened

Fixed can't open a sticker pack when clicking a
sticker in a chat.

Closes #4203
This commit is contained in:
Alexandra Betouni 2021-11-29 17:55:30 +02:00 committed by Alexandra Betouni
parent 7aa777f2e3
commit 2039748072
1 changed files with 5 additions and 6 deletions

View File

@ -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;