summary refs log tree commit diff
path: root/webclient/components
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-11-03 13:26:50 +0000
committerKegan Dougal <kegan@matrix.org>2014-11-03 13:26:50 +0000
commit9b1ca64a75160b44106d5a7b4ddc96a009f56012 (patch)
tree5015aceb8d91a04bda415fa66b2426df252e2451 /webclient/components
parentRemove events.rooms[room_id] entirely from event-handler-service. (diff)
downloadsynapse-9b1ca64a75160b44106d5a7b4ddc96a009f56012.tar.xz
Fix bug which prevented the number of users being visible on the recents view.
Diffstat (limited to 'webclient/components')
-rw-r--r--webclient/components/matrix/event-handler-service.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/webclient/components/matrix/event-handler-service.js b/webclient/components/matrix/event-handler-service.js
index 00e3edf184..953ce839ea 100644
--- a/webclient/components/matrix/event-handler-service.js
+++ b/webclient/components/matrix/event-handler-service.js
@@ -540,13 +540,12 @@ function(matrixService, $rootScope, $q, $timeout, mPresence, notificationService
 
             var room = modelService.getRoom(room_id);
             memberCount = 0;
-
             for (var i in room.current_room_state.members) {
                 if (!room.current_room_state.members.hasOwnProperty(i)) continue;
 
                 var member = room.current_room_state.members[i];
 
-                if ("join" === member.membership) {
+                if ("join" === member.content.membership) {
                     memberCount = memberCount + 1;
                 }
             }