diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-11-13 12:33:43 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-11-13 12:33:43 +0000 |
commit | 0a699df5e8fcb18098a1e53c60798de4bf51eef7 (patch) | |
tree | 3ce70ecf8b528e806e81db233d9ff2903c8038a3 /syweb/webclient/home/home-controller.js | |
parent | SYWEB-152: Unbreak /me (diff) | |
download | synapse-0a699df5e8fcb18098a1e53c60798de4bf51eef7.tar.xz |
Wipe the selected room ID on the home screen.
Diffstat (limited to 'syweb/webclient/home/home-controller.js')
-rw-r--r-- | syweb/webclient/home/home-controller.js | 6 |
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() { |