Recents must not show temporary fake messages

This commit is contained in:
Emmanuel ROHEE 2014-09-15 17:31:07 +02:00
parent 42f5b0a6b8
commit 8aa4b7bf7f
4 changed files with 32 additions and 10 deletions

View file

@ -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