From 2eaa199e6ad2742fbfea54f7d6584bd5c8ac005a Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 8 Sep 2014 11:55:19 -0700 Subject: Added number of users in recent rooms. --- webclient/recents/recents-controller.js | 13 +++++++++++++ webclient/recents/recents.html | 3 +++ 2 files changed, 16 insertions(+) diff --git a/webclient/recents/recents-controller.js b/webclient/recents/recents-controller.js index 45a671e631..fcb203b36c 100644 --- a/webclient/recents/recents-controller.js +++ b/webclient/recents/recents-controller.js @@ -76,12 +76,25 @@ angular.module('RecentsController', ['matrixService', 'matrixFilter', 'eventHand if (room.messages && room.messages.chunk && room.messages.chunk[0]) { $rootScope.rooms[room.room_id].lastMsg = room.messages.chunk[0]; } + + + var numUsersInRoom = 0; + if (room.state) { + for (var j=0; j {{ room.room_id | mRoomName }} + + {{ room.numUsersInRoom }} users + {{ (room.lastMsg.ts) | date:'MMM d HH:mm' }} -- cgit 1.4.1