2020-07-20 19:29:57 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import "../../../../imports"
|
|
|
|
import "../../../../shared"
|
|
|
|
|
|
|
|
SVGImage {
|
2020-08-12 17:58:19 +00:00
|
|
|
property var closeModal: function () {}
|
2020-07-20 19:29:57 +00:00
|
|
|
property int emojiId
|
2020-08-12 17:58:19 +00:00
|
|
|
id: reactionImage
|
2020-07-20 19:29:57 +00:00
|
|
|
width: 32
|
|
|
|
fillMode: Image.PreserveAspectFit
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
onClicked: {
|
2021-01-14 16:03:00 +00:00
|
|
|
chatsModel.toggleReaction(SelectedMessage.messageId, emojiId)
|
2020-08-12 17:58:19 +00:00
|
|
|
reactionImage.closeModal()
|
2020-07-20 19:29:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|