Prevent sending empty message

This commit is contained in:
miruka 2019-03-27 19:24:28 -04:00
parent e4a9fb40ac
commit 3b47fee77d

View File

@ -51,6 +51,8 @@ Rectangle {
return return
} }
if (textArea.text === "") { return }
Backend.sendMessage(chatPage.user.user_id, Backend.sendMessage(chatPage.user.user_id,
chatPage.room.room_id, chatPage.room.room_id,
textArea.text) textArea.text)