Richard Ramos ae83818eed refactor: chats view
Extract private groups, reactions, stickers and transactions procs to individual view files
2020-12-08 17:01:14 -05:00

22 lines
476 B
QML

import QtQuick 2.13
import "../../../../imports"
import "../../../../shared"
SVGImage {
property var closeModal: function () {}
property int emojiId
id: reactionImage
width: 32
fillMode: Image.PreserveAspectFit
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
chatsModel.reactions.toggle(SelectedMessage.messageId, emojiId)
reactionImage.closeModal()
}
}
}