summary refs log tree commit diff
path: root/webclient/recents/recents-controller.js
diff options
context:
space:
mode:
authorKegsay <kegsay@gmail.com>2014-11-04 15:44:58 +0000
committerKegsay <kegsay@gmail.com>2014-11-04 15:44:58 +0000
commit020fc15d9823c94c48fa79f2ffff7310f891a19d (patch)
treec0945f4ec2c7acbbf28a888a3d6623ee486ca714 /webclient/recents/recents-controller.js
parentDon't need this; should be on -g path. (diff)
parentSYWEB-116: Implement historical display name support. (diff)
downloadsynapse-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.js7
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