2021-01-25 20:50:42 +00:00
|
|
|
import QtQuick 2.13
|
2020-07-15 21:04:14 +00:00
|
|
|
import "../../../../../shared"
|
|
|
|
import "../../../../../imports"
|
|
|
|
|
|
|
|
MouseArea {
|
2021-06-10 19:20:43 +00:00
|
|
|
enabled: !placeholderMessage
|
2020-07-20 21:59:01 +00:00
|
|
|
cursorShape: chatText.hoveredLink ? Qt.PointingHandCursor : undefined
|
2021-06-10 19:20:43 +00:00
|
|
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
2020-07-20 21:59:01 +00:00
|
|
|
z: 50
|
2020-07-15 21:04:14 +00:00
|
|
|
onClicked: {
|
2021-06-10 19:20:43 +00:00
|
|
|
if (activityCenterMessage) {
|
|
|
|
return clickMessage(false, isSticker, false)
|
|
|
|
}
|
|
|
|
if(mouse.button === Qt.RightButton) {
|
|
|
|
clickMessage(false, isSticker, false)
|
2021-02-08 18:46:20 +00:00
|
|
|
if (typeof isMessageActive !== "undefined") {
|
2021-04-21 15:22:49 +00:00
|
|
|
setMessageActive(messageId, true)
|
2021-02-08 18:46:20 +00:00
|
|
|
}
|
2020-09-12 18:22:07 +00:00
|
|
|
return;
|
|
|
|
}
|
2021-03-30 14:13:20 +00:00
|
|
|
if (mouse.button === Qt.LeftButton && isSticker && stickersLoaded) {
|
|
|
|
if (isHovered) {
|
|
|
|
isHovered = false
|
|
|
|
}
|
|
|
|
|
2021-03-08 19:24:39 +00:00
|
|
|
openPopup(statusStickerPackClickPopup, {packId: stickerPackId} )
|
2020-07-15 21:04:14 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|