diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-18 15:19:35 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-18 15:19:35 +0200 |
commit | 0db0528e8ef3aeeb68c73d51aa2bafa91459b83c (patch) | |
tree | 6a69d4fb028af7faca432e4f1765b41a38111edc /webclient/recents | |
parent | Merge branch 'release-v0.3.0' of github.com:matrix-org/synapse (diff) | |
download | synapse-0db0528e8ef3aeeb68c73d51aa2bafa91459b83c.tar.xz |
Reverted patches done for SYWEB-40
Diffstat (limited to 'webclient/recents')
-rw-r--r-- | webclient/recents/recents-filter.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/webclient/recents/recents-filter.js b/webclient/recents/recents-filter.js index d948205e19..e8323f4a31 100644 --- a/webclient/recents/recents-filter.js +++ b/webclient/recents/recents-filter.js @@ -19,14 +19,13 @@ angular.module('RecentsController') .filter('orderRecents', ["matrixService", "eventHandlerService", function(matrixService, eventHandlerService) { return function(rooms) { - var user_id = matrixService.config().user_id; // Transform the dict into an array // The key, room_id, is already in value objects var filtered = []; angular.forEach(rooms, function(room, room_id) { - + // Show the room only if the user has joined it or has been invited // (ie, do not show it if he has been banned) var member = eventHandlerService.getMember(room_id, user_id); @@ -35,8 +34,9 @@ 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 @@ -60,4 +60,4 @@ angular.module('RecentsController') }); return filtered; }; -}]); +}]); \ No newline at end of file |