From d9cdd2f16580d59965c8fc158e0e7be961142342 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 7 Jul 2014 17:02:35 -0400 Subject: [PATCH] limiting recent chats to 20 --- src/controllers/accounts.js | 3 +++ 1 file changed, 3 insertions(+) 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,