Add reaction from menu.

This commit is contained in:
Black Hat
2019-07-26 18:03:47 +08:00
parent 442b68558e
commit b7bdfa75a1

View File

@@ -12,6 +12,31 @@ Menu {
id: root
Flow {
width: parent.width
spacing: 0
Repeater {
model: ["👍", "👎️", "😄", "🎉", "🚀", "👀"]
delegate: ItemDelegate {
width: 32
height: 32
contentItem: Label {
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
font.pixelSize: 16
text: modelData
}
onClicked: currentRoom.toggleReaction(eventId, modelData)
}
}
}
MenuItem {
text: "View Source"