summary refs log tree commit diff
path: root/syweb/webclient/app-controller.js
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-11-17 10:12:44 +0000
committerKegan Dougal <kegan@matrix.org>2014-11-17 11:04:10 +0000
commit7799e14121107417ef0de5881b23e0c74394575c (patch)
treeacca4e373936e0e470b59ad5e9d4cb00bda79cba /syweb/webclient/app-controller.js
parentThese lines aren't doing anything (diff)
downloadsynapse-7799e14121107417ef0de5881b23e0c74394575c.tar.xz
Add clearRooms() to wipe data when you logout.
Diffstat (limited to 'syweb/webclient/app-controller.js')
-rw-r--r--syweb/webclient/app-controller.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/syweb/webclient/app-controller.js b/syweb/webclient/app-controller.js
index 582c075e3d..46890c2287 100644
--- a/syweb/webclient/app-controller.js
+++ b/syweb/webclient/app-controller.js
@@ -85,6 +85,7 @@ angular.module('MatrixWebClientController', ['matrixService', 'mPresence', 'even
         matrixService.saveConfig();
 
         // Reset cached data
+        modelService.clearRooms();
         eventHandlerService.reset();
 
         // And go to the login page