clear stores in invalid session bug fixed
This commit is contained in:
1 parent
92ba6c9802
commit
90e67b22b4
1 file changed
+1
@@ -77,6 +77,7 @@ class InitMatrix extends EventEmitter {
|
||||
|
||||
listenEvents() {
|
||||
this.matrixClient.on('Session.logged_out', () => {
|
||||
this.matrixClient.stopClient();
|
||||
this.matrixClient.clearStores();
|
||||
window.localStorage.clear();
|
||||
window.location.reload();
|
||||
|
||||
Reference in new issue
Block a user