clear stores in invalid session bug fixed
This commit is contained in:
parent
92ba6c9802
commit
90e67b22b4
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue