summary refs log tree commit diff
path: root/webclient/home/home-controller.js
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-12 17:43:25 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-12 17:43:35 +0200
commit3ed39ad20e20556ce8f103d2187a5699ceac95f9 (patch)
treeec22792c12d9395046abc90da57e73dd9165e918 /webclient/home/home-controller.js
parentRetry sending events that fail to send. (diff)
downloadsynapse-3ed39ad20e20556ce8f103d2187a5699ceac95f9.tar.xz
Clean data when user logs out
Diffstat (limited to 'webclient/home/home-controller.js')
-rw-r--r--webclient/home/home-controller.js5
1 files changed, 5 insertions, 0 deletions
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 = [];
+    });
 }]);