From b9cb22e153430bbdbac0e2c36eb5985c475e9494 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 2 Sep 2019 14:36:31 +0200 Subject: [PATCH] dont allow sending empty messages --- src/components/views/rooms/SendMessageComposer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/views/rooms/SendMessageComposer.js b/src/components/views/rooms/SendMessageComposer.js index 0e03d83467..ca7b94999d 100644 --- a/src/components/views/rooms/SendMessageComposer.js +++ b/src/components/views/rooms/SendMessageComposer.js @@ -203,6 +203,9 @@ export default class SendMessageComposer extends React.Component { } _sendMessage() { + if (this.model.isEmpty) { + return; + } if (!containsEmote(this.model) && this._isSlashCommand()) { this._runSlashCommand(); } else {