Refuse to send empty messages
continuous-integration/drone/push Build is passing Details

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
1 changed files with 1 additions and 0 deletions

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)
}