mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 11:17:29 +02:00
action:chat.sent
This commit is contained in:
@@ -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;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user