mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-11 22:31:52 +02:00
fix: chat fix
This commit is contained in:
@@ -524,8 +524,8 @@ define('forum/chats', [
|
||||
$('[data-roomid="' + ajaxify.data.roomId + '"]').toggleClass('unread', false);
|
||||
$('.expanded-chat [component="chat/input"]').focus();
|
||||
}
|
||||
$('.chats-list li').removeClass('bg-info');
|
||||
$('.chats-list li[data-roomid="' + ajaxify.data.roomId + '"]').addClass('bg-info');
|
||||
$('.chats-list li').removeClass('active');
|
||||
$('.chats-list li[data-roomid="' + ajaxify.data.roomId + '"]').addClass('active');
|
||||
|
||||
components.get('chat/nav-wrapper').attr('data-loaded', ajaxify.data.roomId ? '1' : '0');
|
||||
};
|
||||
|
||||
@@ -141,7 +141,7 @@ Messaging.getRecentChats = async (callerUid, uid, start, stop) => {
|
||||
Messaging.generateUsernames = function (users, excludeUid) {
|
||||
users = users.filter(u => u && parseInt(u.uid, 10) !== excludeUid);
|
||||
const usernames = users.map(u => u.username);
|
||||
if (users.length > 2) {
|
||||
if (users.length > 3) {
|
||||
return translator.compile(
|
||||
'modules:chat.usernames-and-x-others',
|
||||
usernames.slice(0, 2).join(', '),
|
||||
|
||||
Reference in New Issue
Block a user