summary refs log tree commit diff
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-11-13 12:33:43 +0000
committerKegan Dougal <kegan@matrix.org>2014-11-13 12:33:43 +0000
commit0a699df5e8fcb18098a1e53c60798de4bf51eef7 (patch)
tree3ce70ecf8b528e806e81db233d9ff2903c8038a3
parentSYWEB-152: Unbreak /me (diff)
downloadsynapse-0a699df5e8fcb18098a1e53c60798de4bf51eef7.tar.xz
Wipe the selected room ID on the home screen.
-rw-r--r--syweb/webclient/home/home-controller.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/syweb/webclient/home/home-controller.js b/syweb/webclient/home/home-controller.js
index 6a3c079295..a9538a0309 100644
--- a/syweb/webclient/home/home-controller.js
+++ b/syweb/webclient/home/home-controller.js
@@ -17,8 +17,8 @@ limitations under the License.
 'use strict';
 
 angular.module('HomeController', ['matrixService', 'eventHandlerService', 'RecentsController'])
-.controller('HomeController', ['$scope', '$location', 'matrixService', 'eventHandlerService', 'modelService',
-                               function($scope, $location, matrixService, eventHandlerService, modelService) {
+.controller('HomeController', ['$scope', '$location', 'matrixService', 'eventHandlerService', 'modelService', 'recentsService',
+                               function($scope, $location, matrixService, eventHandlerService, modelService, recentsService) {
 
     $scope.config = matrixService.config();
     $scope.public_rooms = [];
@@ -46,6 +46,8 @@ angular.module('HomeController', ['matrixService', 'eventHandlerService', 'Recen
     $scope.newChat = {
         user: ""
     };
+    
+    recentsService.setSelectedRoomId(undefined);
 
     var refresh = function() {