diff --git a/public/src/forum/footer.js b/public/src/forum/footer.js index eb8d0f3e20..046a7e8186 100644 --- a/public/src/forum/footer.js +++ b/public/src/forum/footer.js @@ -208,7 +208,7 @@ }); }); - socket.on('chatMessage', function(data) { + socket.on('event:chats.receive', function(data) { require(['chat'], function(chat) { var modal = null; if (chat.modalExists(data.fromuid)) { diff --git a/public/src/modules/chat.js b/public/src/modules/chat.js index 2aeb2f02bf..8c3b551330 100644 --- a/public/src/modules/chat.js +++ b/public/src/modules/chat.js @@ -114,7 +114,7 @@ define(['taskbar'], function(taskbar) { } function getChatMessages(chatModal, callback) { - socket.emit('getChatMessages', {touid:chatModal.touid}, function(messages) { + socket.emit('api:chats.get', {touid:chatModal.touid}, function(messages) { for(var i = 0; i