status-desktop/ui/app/AppLayouts/Chat/components/EmojiReaction.qml

22 lines
476 B
QML
Raw Normal View History

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()
}
}
}