diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-11-03 11:44:39 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-11-03 11:44:39 +0000 |
commit | 6bc1dc40208fd1c49591dbc8cb2b9a341b96f576 (patch) | |
tree | af60e7400e6a780165b05f396a8c3c5f2ebd6f57 /webclient/recents/recents-controller.js | |
parent | Make call stuff use modelService. (diff) | |
download | synapse-6bc1dc40208fd1c49591dbc8cb2b9a341b96f576.tar.xz |
Make recents[controller/filter/html] use modelService.
This breaks functionality whilst both events.rooms and modelService are in use.
Diffstat (limited to 'webclient/recents/recents-controller.js')
-rw-r--r-- | webclient/recents/recents-controller.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/webclient/recents/recents-controller.js b/webclient/recents/recents-controller.js index ee8a41c366..6f0be18f1a 100644 --- a/webclient/recents/recents-controller.js +++ b/webclient/recents/recents-controller.js @@ -17,11 +17,14 @@ 'use strict'; angular.module('RecentsController', ['matrixService', 'matrixFilter']) -.controller('RecentsController', ['$rootScope', '$scope', 'eventHandlerService', - function($rootScope, $scope, eventHandlerService) { +.controller('RecentsController', ['$rootScope', '$scope', 'eventHandlerService', 'modelService', + function($rootScope, $scope, eventHandlerService, modelService) { // Expose the service to the view $scope.eventHandlerService = eventHandlerService; + + // retrieve all rooms and expose them + $scope.rooms = modelService.getRooms(); // $rootScope of the parent where the recents component is included can override this value // in order to highlight a specific room in the list |