Some basic reply support.

This commit is contained in:
Black Hat
2018-09-17 11:58:02 +08:00
parent d02c3f6e90
commit 5ca03fdea8
7 changed files with 131 additions and 89 deletions

View File

@@ -41,6 +41,16 @@ Menu {
onTriggered: row.saveFileAs()
}
MenuItem {
visible: model && model.author !== currentRoom.localUser
height: visible ? undefined : 0
text: "Reply"
onTriggered: {
inputField.clear()
inputField.insert(0, "> <" + model.author.id + "><" + model.eventId + "> " + model.message + "\n\n")
}
}
MenuItem {
visible: model && model.author === currentRoom.localUser
height: visible ? undefined : 0