marathon bugfixing with @barisusakli re: #1788

This commit is contained in:
Julian Lam
2014-07-07 19:47:03 -04:00
parent d9cdd2f165
commit 71916f0691
6 changed files with 25 additions and 18 deletions

View File

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