Wipe the selected room ID on the home screen.
parent
5180285456
commit
0a699df5e8
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue