summary refs log tree commit diff
path: root/webclient/recents/recents-controller.js
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-15 17:31:07 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-15 17:31:07 +0200
commit8aa4b7bf7fdc31b3a146fe8fdc07922a4bfb1f78 (patch)
tree254a5f8e22853ef99294abef426a3d790df7a5de /webclient/recents/recents-controller.js
parentRecents uses data directly from $rootscope.events (diff)
downloadsynapse-8aa4b7bf7fdc31b3a146fe8fdc07922a4bfb1f78.tar.xz
Recents must not show temporary fake messages
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 2006f13a57..ee8a41c366 100644
--- a/webclient/recents/recents-controller.js
+++ b/webclient/recents/recents-controller.js
@@ -17,8 +17,11 @@
 'use strict';
 
 angular.module('RecentsController', ['matrixService', 'matrixFilter'])
-.controller('RecentsController', ['$rootScope', 
-                               function($rootScope) {
+.controller('RecentsController', ['$rootScope', '$scope', 'eventHandlerService', 
+                               function($rootScope, $scope, eventHandlerService) {
+
+    // Expose the service to the view
+    $scope.eventHandlerService = eventHandlerService;
 
     // $rootScope of the parent where the recents component is included can override this value
     // in order to highlight a specific room in the list