Node.js based forum software built for the modern web
closes #3998
barisusakli51154c8726c7
diff --git a/public/src/modules/chat.js b/public/src/modules/chat.jsindex 2414052b3b..b04ce8743d 100644--- a/public/src/modules/chat.js+++ b/public/src/modules/chat.js@@ -95,7 +95,7 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra};module.loadChatsDropdown = function(chatsListEl) {- var dropdownEl;+socket.emit('modules.chats.getRecentChats', {after: 0}, function(err, data) {if (err) {@@ -126,12 +126,16 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'traroomObj.usernames + '</a>';}- dropdownEl = $('<li class="' + (roomObj.unread ? 'unread' : '') + '"/>')+ var dropdownEl = $('<li class="' + (roomObj.unread ? 'unread' : '') + '"/>').attr('data-roomId', roomObj.roomId).appendTo(chatsListEl);if (roomObj.lastUser) {dropdownEl.append(createUserImage(roomObj.lastUser));+ } else {+ translator.translate('[[modules:chat.no-users-in-room]]', function(str) {+ dropdownEl.append(str);+ });}dropdownEl.click(function() {