inf scroll in chat-content

This commit is contained in:
barisusakli
2016-09-20 16:58:50 +03:00
parent 6c7fe6b5cf
commit 55396ca442
4 changed files with 82 additions and 10 deletions

View File

@@ -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'), {