diff options
author | Kegsay <kegsay@gmail.com> | 2014-11-04 15:44:58 +0000 |
---|---|---|
committer | Kegsay <kegsay@gmail.com> | 2014-11-04 15:44:58 +0000 |
commit | 020fc15d9823c94c48fa79f2ffff7310f891a19d (patch) | |
tree | c0945f4ec2c7acbbf28a888a3d6623ee486ca714 /webclient/recents/recents-controller.js | |
parent | Don't need this; should be on -g path. (diff) | |
parent | SYWEB-116: Implement historical display name support. (diff) | |
download | synapse-020fc15d9823c94c48fa79f2ffff7310f891a19d.tar.xz |
Merge pull request #11 from matrix-org/webclient-room-data-restructure
Webclient room data restructure
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 |