mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
inf scroll in chat-content
This commit is contained in:
@@ -104,7 +104,7 @@ define('chat', [
|
||||
};
|
||||
|
||||
module.loadChatsDropdown = function(chatsListEl) {
|
||||
socket.emit('modules.chats.getRecentChats', {after: 0}, function(err, data) {
|
||||
socket.emit('modules.chats.getRecentChats', {uid: app.user.uid, after: 0}, function(err, data) {
|
||||
if (err) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
@@ -261,6 +261,8 @@ define('chat', [
|
||||
|
||||
Chats.loadChatSince(chatModal.attr('roomId'), chatModal.find('.chat-content'), 'recent');
|
||||
|
||||
Chats.addScrollHandler(chatModal.attr('roomId'), app.user.uid, chatModal.find('.chat-content'));
|
||||
|
||||
checkStatus(chatModal);
|
||||
|
||||
taskbar.push('chat', chatModal.attr('UUID'), {
|
||||
|
||||
Reference in New Issue
Block a user