Reactions are refreshed correctly in the timeline.

This commit is contained in:
Black Hat
2019-07-30 21:29:55 +08:00
parent a9a59fad41
commit f7da8eebad
4 changed files with 52 additions and 31 deletions

View File

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