2014-08-27 15:09:16 +02:00
|
|
|
/*
|
2014-09-03 18:29:13 +02:00
|
|
|
Copyright 2014 OpenMarket Ltd
|
2014-08-27 15:09:16 +02:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
2014-09-15 16:31:59 +02:00
|
|
|
angular.module('RecentsController', ['matrixService', 'matrixFilter'])
|
|
|
|
.controller('RecentsController', ['$rootScope',
|
|
|
|
function($rootScope) {
|
2014-08-27 17:20:41 +02:00
|
|
|
|
2014-09-08 18:13:22 +02:00
|
|
|
// $rootScope of the parent where the recents component is included can override this value
|
2014-08-27 17:20:41 +02:00
|
|
|
// in order to highlight a specific room in the list
|
2014-09-08 18:13:22 +02:00
|
|
|
$rootScope.recentsSelectedRoomID;
|
2014-08-27 18:52:02 +02:00
|
|
|
|
2014-08-27 15:09:16 +02:00
|
|
|
}]);
|
|
|
|
|