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: {
|
2020-12-06 15:24:28 +00:00
|
|
|
chatsModel.reactions.toggle(SelectedMessage.messageId, emojiId)
|
2020-08-12 17:58:19 +00:00
|
|
|
reactionImage.closeModal()
|
2020-07-20 19:29:57 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|