diff --git a/src/platform/web/ui/session/room/MessageComposer.js b/src/platform/web/ui/session/room/MessageComposer.js index 6ce8148f99..515bacaafe 100644 --- a/src/platform/web/ui/session/room/MessageComposer.js +++ b/src/platform/web/ui/session/room/MessageComposer.js @@ -95,6 +95,9 @@ export class MessageComposer extends TemplateView { // to prevent the user from sending the message // every time they hit enter while it's still enqueuing. const {value} = this._input; + if (!value || !value.trim()) { + return; + } const restoreValue = () => { this._input.value = value; this._adjustHeight();