Fix anchors in layout error and eventId is not defined

This commit is contained in:
Carl Schwan
2020-11-08 12:08:18 +01:00
parent 041d97a233
commit bf8c54c987
3 changed files with 67 additions and 57 deletions

View File

@@ -16,6 +16,7 @@ Kirigami.OverlaySheet {
required property var author;
required property string message;
required property string eventId;
signal viewSource()
signal reply(var author, string message)
@@ -72,9 +73,13 @@ Kirigami.OverlaySheet {
font.pixelSize: 16
font.family: "emoji"
text: modelData
}
onClicked: currentRoom.toggleReaction(eventId, modelData)
onClicked: {
currentRoom.toggleReaction(eventId, modelData)
root.close();
}
}
}
}