Prevent sending empty message
This commit is contained in:
parent
e4a9fb40ac
commit
3b47fee77d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user