Convert markdown to HTML for sendbox

Also pass to clientManager the Backend, and to Client the clientManager,
and set Qt parents for them.
This commit is contained in:
miruka
2019-04-17 23:28:25 -04:00
parent a7649d1a7a
commit 98b494fcc2
6 changed files with 30 additions and 12 deletions

View File

@@ -54,7 +54,7 @@ Rectangle {
if (textArea.text === "") { return }
Backend.clientManager.clients[chatPage.user_id]
.sendMessage(chatPage.room.room_id, textArea.text)
.sendMarkdown(chatPage.room.room_id, textArea.text)
textArea.clear()
}
Keys.onEnterPressed: Keys.onReturnPressed(event) // numpad enter