summary refs log tree commit diff
path: root/webclient/room
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-08-27 17:20:41 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-08-27 17:20:53 +0200
commitd9155b6a25d706edb85706a1c0cff6dacbdc1640 (patch)
treeb1b0119000e2c5ab0a3ca5866040764700a003c6 /webclient/room
parentAdded the recents component at the left hand side of the room page (diff)
downloadsynapse-d9155b6a25d706edb85706a1c0cff6dacbdc1640.tar.xz
Highlight the current room in the recents list
Diffstat (limited to 'webclient/room')
-rw-r--r--webclient/room/room-controller.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index f49deaa489..641ccddce7 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -327,6 +327,9 @@ angular.module('RoomController', ['ngSanitize', 'mUtilities'])
     var onInit2 = function() {
         eventHandlerService.reInitRoom($scope.room_id); 
 
+        // Make recents highlight the current room
+        $scope.recentsSelectedRoomID = $scope.room_id;
+
         // Join the room
         matrixService.join($scope.room_id).then(
             function() {