mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: dont send empty strings
This commit is contained in:
@@ -8,7 +8,7 @@ define('forum/chats/messages', ['components', 'sounds', 'translator', 'benchpres
|
||||
var msg = inputEl.val();
|
||||
var mid = inputEl.attr('data-mid');
|
||||
|
||||
if (!msg.length) {
|
||||
if (!msg.trim().length) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user