Refuse to send empty messages
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e18c8c77ae
commit
36f204624f
1 changed files with 1 additions and 0 deletions
|
@ -33,5 +33,6 @@ function fixHeight() {
|
||||||
|
|
||||||
function send(body) {
|
function send(body) {
|
||||||
if (!store.activeRoom.exists()) return
|
if (!store.activeRoom.exists()) return
|
||||||
|
if (!body.trim().length) return
|
||||||
return store.activeRoom.value().timeline.send(body)
|
return store.activeRoom.value().timeline.send(body)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue