From 3ed39ad20e20556ce8f103d2187a5699ceac95f9 Mon Sep 17 00:00:00 2001 From: Emmanuel ROHEE Date: Fri, 12 Sep 2014 17:43:25 +0200 Subject: Clean data when user logs out --- webclient/home/home-controller.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'webclient/home/home-controller.js') diff --git a/webclient/home/home-controller.js b/webclient/home/home-controller.js index 85e8990c29..c0c4ea11aa 100644 --- a/webclient/home/home-controller.js +++ b/webclient/home/home-controller.js @@ -142,4 +142,9 @@ angular.module('HomeController', ['matrixService', 'eventHandlerService', 'Recen refresh(); }; + + // Clean data when user logs out + $scope.$on(eventHandlerService.RESET_EVENT, function() { + $scope.public_rooms = []; + }); }]); -- cgit 1.4.1