mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +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.loadChatSince(uid, $('.chat-content'), 'recent');
|
||||||
Chats.addSendHandlers(uid, components.get('chat/input'), $('[data-action="send"]'));
|
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/title').text(username);
|
||||||
components.get('chat/messages').attr('data-uid', uid).attr('data-username', username);
|
components.get('chat/messages').attr('data-uid', uid).attr('data-username', username);
|
||||||
components.get('breadcrumb/current').text(username);
|
components.get('breadcrumb/current').text(username);
|
||||||
|
|||||||
@@ -27,6 +27,9 @@ SocketModules.chats.get = function(socket, data, callback) {
|
|||||||
since: data.since,
|
since: data.since,
|
||||||
isNew: false
|
isNew: false
|
||||||
}, callback);
|
}, callback);
|
||||||
|
|
||||||
|
// Mark chat as read
|
||||||
|
Messaging.markRead(socket.uid, data.touid);
|
||||||
};
|
};
|
||||||
|
|
||||||
SocketModules.chats.getRaw = function(socket, data, callback) {
|
SocketModules.chats.getRaw = function(socket, data, callback) {
|
||||||
|
|||||||
Reference in New Issue
Block a user