diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-09-08 14:01:34 -0700 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-09-08 14:01:34 -0700 |
commit | a3590dfa262d0113a354591676942e05c20b5cbf (patch) | |
tree | 92369eb9bcaa005f640b4b78f1147dab8392da39 /webclient/recents/recents-controller.js | |
parent | Added big massive TODOs on a huge design problem with initial sync (diff) | |
download | synapse-a3590dfa262d0113a354591676942e05c20b5cbf.tar.xz |
Bodge to default to '1 users' when you create a room, which is better than blindly assuming a recents controller is writing to rootScope.rooms and setting numUsersInRoom there.
Diffstat (limited to 'webclient/recents/recents-controller.js')
-rw-r--r-- | webclient/recents/recents-controller.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webclient/recents/recents-controller.js b/webclient/recents/recents-controller.js index b4762acd1d..701c935742 100644 --- a/webclient/recents/recents-controller.js +++ b/webclient/recents/recents-controller.js @@ -82,6 +82,11 @@ angular.module('RecentsController', ['matrixService', 'matrixFilter', 'eventHand eventHandlerService.waitForInitialSyncCompletion().then( function(initialSyncData) { + // XXX FIXME TODO: + // Any assignments to the rootScope here should be done in + // event handler service and not here, because we could have + // many controllers manipulating and clobbering each other, and + // are unecessarily repeating http requests. var rooms = initialSyncData.data.rooms; for (var i=0; i<rooms.length; i++) { var room = rooms[i]; |