From 36f204624f3aebc221813c220ca8e82af8556647 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Thu, 22 Oct 2020 23:02:50 +1300 Subject: [PATCH] Refuse to send empty messages --- src/js/chat-input.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/chat-input.js b/src/js/chat-input.js index de0eec7..9b703c1 100644 --- a/src/js/chat-input.js +++ b/src/js/chat-input.js @@ -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) }