diff --git a/src/controllers/accounts.js b/src/controllers/accounts.js index cb14d9acef..eec71b2bd2 100644 --- a/src/controllers/accounts.js +++ b/src/controllers/accounts.js @@ -501,6 +501,9 @@ accountsController.getChats = function(req, res, next) { }); } + // Limit returned chats + chats.length = 20; + res.render('chats', { meta: res.locals.chatData, chats: chats,