diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-27 17:20:41 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-27 17:20:53 +0200 |
commit | d9155b6a25d706edb85706a1c0cff6dacbdc1640 (patch) | |
tree | b1b0119000e2c5ab0a3ca5866040764700a003c6 /webclient/recents/recents-controller.js | |
parent | Added the recents component at the left hand side of the room page (diff) | |
download | synapse-d9155b6a25d706edb85706a1c0cff6dacbdc1640.tar.xz |
Highlight the current room in the recents list
Diffstat (limited to 'webclient/recents/recents-controller.js')
-rw-r--r-- | webclient/recents/recents-controller.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webclient/recents/recents-controller.js b/webclient/recents/recents-controller.js index a9805fc38a..8f8b08d5bd 100644 --- a/webclient/recents/recents-controller.js +++ b/webclient/recents/recents-controller.js @@ -20,7 +20,11 @@ angular.module('RecentsController', ['matrixService', 'eventHandlerService']) .controller('RecentsController', ['$scope', 'matrixService', 'eventHandlerService', 'eventStreamService', function($scope, matrixService, eventHandlerService, eventStreamService) { $scope.rooms = {}; - + + // $scope of the parent where the recents component is included can override this value + // in order to highlight a specific room in the list + $scope.recentsSelectedRoomID; + $scope.$on(eventHandlerService.MEMBER_EVENT, function(ngEvent, event, isLive) { var config = matrixService.config(); if (event.state_key === config.user_id && event.content.membership === "invite") { |