Sending messages and local echo

This commit is contained in:
miruka
2019-07-03 21:20:49 -04:00
parent 1f73f634e8
commit 8ac731149d
6 changed files with 84 additions and 30 deletions

View File

@@ -34,6 +34,7 @@ HRectangle {
property bool textChangedSinceLostFocus: false
function setTyping(typing) {
return
Backend.clients.get(chatPage.userId)
.setTypingState(chatPage.roomId, typing)
}
@@ -60,8 +61,9 @@ HRectangle {
}
if (textArea.text === "") { return }
Backend.clients.get(chatPage.userId)
.sendMarkdown(chatPage.roomId, textArea.text)
var args = [chatPage.roomId, textArea.text]
py.callClientCoro(chatPage.userId, "send_markdown", args)
area.clear()
}