Wipe the selected room ID on the home screen.

pull/14/head
Kegan Dougal 2014-11-13 12:33:43 +00:00
parent 5180285456
commit 0a699df5e8
1 changed files with 4 additions and 2 deletions

View File

@ -17,8 +17,8 @@ limitations under the License.
'use strict'; 'use strict';
angular.module('HomeController', ['matrixService', 'eventHandlerService', 'RecentsController']) angular.module('HomeController', ['matrixService', 'eventHandlerService', 'RecentsController'])
.controller('HomeController', ['$scope', '$location', 'matrixService', 'eventHandlerService', 'modelService', .controller('HomeController', ['$scope', '$location', 'matrixService', 'eventHandlerService', 'modelService', 'recentsService',
function($scope, $location, matrixService, eventHandlerService, modelService) { function($scope, $location, matrixService, eventHandlerService, modelService, recentsService) {
$scope.config = matrixService.config(); $scope.config = matrixService.config();
$scope.public_rooms = []; $scope.public_rooms = [];
@ -47,6 +47,8 @@ angular.module('HomeController', ['matrixService', 'eventHandlerService', 'Recen
user: "" user: ""
}; };
recentsService.setSelectedRoomId(undefined);
var refresh = function() { var refresh = function() {
matrixService.publicRooms().then( matrixService.publicRooms().then(