fix: dont send empty strings

v1.18.x
Barış Soner Uşaklı 6 years ago
parent fe0f95a2b1
commit 555c092f65

@ -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;
}

Loading…
Cancel
Save