Make the SendBox work, send plaintext messages
This commit is contained in:
@@ -30,7 +30,6 @@ Rectangle {
|
||||
property real yPos: visibleArea.yPosition
|
||||
|
||||
onYPosChanged: {
|
||||
console.log(yPos)
|
||||
if (yPos <= 0.1) {
|
||||
Backend.loadPastEvents(chatPage.room.room_id)
|
||||
}
|
||||
|
@@ -53,9 +53,8 @@ Rectangle {
|
||||
|
||||
if (textArea.text === "") { return }
|
||||
|
||||
Backend.sendMessage(chatPage.user.user_id,
|
||||
chatPage.room.room_id,
|
||||
textArea.text)
|
||||
Backend.clientManager.clients[chatPage.user_id]
|
||||
.sendMessage(chatPage.room.room_id, textArea.text)
|
||||
textArea.clear()
|
||||
}
|
||||
Keys.onEnterPressed: Keys.onReturnPressed(event) // numpad enter
|
||||
|
Reference in New Issue
Block a user