limiting recent chats to 20

v1.18.x
Julian Lam 11 years ago
parent 13e4e8dad7
commit d9cdd2f165

@ -501,6 +501,9 @@ accountsController.getChats = function(req, res, next) {
}); });
} }
// Limit returned chats
chats.length = 20;
res.render('chats', { res.render('chats', {
meta: res.locals.chatData, meta: res.locals.chatData,
chats: chats, chats: chats,

Loading…
Cancel
Save