summary refs log tree commit diff
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-09-18 10:05:34 +0100
committerKegan Dougal <kegan@matrix.org>2014-09-18 10:05:34 +0100
commit32808e4111d4f2db9ad0af7e0eacb96d7f0d81fc (patch)
tree9f4bb33dcbe89545a7eec3fcb78b8b490f819fd7
parentCreate room entries for public rooms too so their public state is transferred... (diff)
downloadsynapse-32808e4111d4f2db9ad0af7e0eacb96d7f0d81fc.tar.xz
Still add the room to the filtered list even if you can't work out the number of users in the room.
-rw-r--r--webclient/recents/recents-filter.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/webclient/recents/recents-filter.js b/webclient/recents/recents-filter.js
index 2fd4dbe98b..d948205e19 100644
--- a/webclient/recents/recents-filter.js
+++ b/webclient/recents/recents-filter.js
@@ -35,9 +35,8 @@ angular.module('RecentsController')
                 // Count users here
                 // TODO: Compute it directly in eventHandlerService
                 room.numUsersInRoom = eventHandlerService.getUsersCountInRoom(room_id);
-
-                filtered.push(room);
             }
+            filtered.push(room);
         });
 
         // And time sort them
@@ -61,4 +60,4 @@ angular.module('RecentsController')
         });
         return filtered;
     };
-}]);
\ No newline at end of file
+}]);