mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fixes #3950
This commit is contained in:
@@ -197,7 +197,12 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
|
||||
|
||||
Chats.loadChatSince(uid, $('.chat-content'), 'recent');
|
||||
Chats.addSendHandlers(uid, components.get('chat/input'), $('[data-action="send"]'));
|
||||
contactEl.addClass('bg-primary').siblings().removeClass('bg-primary');
|
||||
|
||||
contactEl
|
||||
.removeClass('unread')
|
||||
.addClass('bg-primary')
|
||||
.siblings().removeClass('bg-primary');
|
||||
|
||||
components.get('chat/title').text(username);
|
||||
components.get('chat/messages').attr('data-uid', uid).attr('data-username', username);
|
||||
components.get('breadcrumb/current').text(username);
|
||||
|
||||
@@ -27,6 +27,9 @@ SocketModules.chats.get = function(socket, data, callback) {
|
||||
since: data.since,
|
||||
isNew: false
|
||||
}, callback);
|
||||
|
||||
// Mark chat as read
|
||||
Messaging.markRead(socket.uid, data.touid);
|
||||
};
|
||||
|
||||
SocketModules.chats.getRaw = function(socket, data, callback) {
|
||||
|
||||
Reference in New Issue
Block a user