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