summary refs log tree commit diff
path: root/webclient/recents
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/recents
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/recents')
-rw-r--r--webclient/recents/recents-filter.js4
-rw-r--r--webclient/recents/recents.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/webclient/recents/recents-filter.js b/webclient/recents/recents-filter.js
index acd9f86ece..db7fc5e4ee 100644
--- a/webclient/recents/recents-filter.js
+++ b/webclient/recents/recents-filter.js
@@ -31,8 +31,8 @@ angular.module('RecentsController')
             // (ie, do not show it if he has been banned)
             var member = modelService.getMember(room_id, user_id);
             room.recent.me = member;
-            if (member && ("invite" === member.membership || "join" === member.membership)) {
-                if ("invite" === member.membership) {
+            if (member && ("invite" === member.content.membership || "join" === member.content.membership)) {
+                if ("invite" === member.content.membership) {
                     room.recent.inviter = member.user_id;
                 }
                 // Count users here
diff --git a/webclient/recents/recents.html b/webclient/recents/recents.html
index 2a633ebe24..a11e6be532 100644
--- a/webclient/recents/recents.html
+++ b/webclient/recents/recents.html
@@ -9,7 +9,7 @@
                     {{ room.room_id | mRoomName }}
                 </td>
                 <td class="recentsRoomSummaryUsersCount">
-                    <span ng-show="undefined !== room.numUsersInRoom">
+                    <span ng-show="undefined !== room.recent.numUsersInRoom">
                         {{ room.recent.numUsersInRoom || '1' }} {{ room.recent.numUsersInRoom == 1 ? 'user' : 'users' }}                     
                     </span>
                 </td>