action:chat.sent

This commit is contained in:
psychobunny
2017-01-12 11:48:41 -05:00
committed by GitHub
parent 759f1e2085
commit 9797f69324

View File

@@ -21,6 +21,12 @@ define('forum/chats/messages', ['components', 'sounds', 'translator'], function
inputEl.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;
});
});