Node.js based forum software built for the modern web
action:chat.sent
psychobunny9797f6932452
diff --git a/public/src/client/chats/messages.js b/public/src/client/chats/messages.jsindex 1ac8e2a2ff..3cb8328847 100644--- a/public/src/client/chats/messages.js+++ b/public/src/client/chats/messages.js@@ -21,6 +21,12 @@ define('forum/chats/messages', ['components', 'sounds', 'translator'], functioninputEl.val('');inputEl.removeAttr('data-mid');+ $(window).trigger('action:chat.sent', {+ roomId: roomId,+ message: msg,+ mid: mid+ });+if (!mid) {socket.emit('modules.chats.send', {roomId: roomId,@@ -145,4 +151,4 @@ define('forum/chats/messages', ['components', 'sounds', 'translator'], function};return messages;-});\ No newline at end of file+});