Refuse to send empty messages
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Cadence Ember 2020-10-22 23:02:50 +13:00
parent e18c8c77ae
commit 36f204624f
Signed by: cadence
GPG key ID: BC1C2C61CF521B17

View file

@ -33,5 +33,6 @@ function fixHeight() {
function send(body) {
if (!store.activeRoom.exists()) return
if (!body.trim().length) return
return store.activeRoom.value().timeline.send(body)
}