clear stores in invalid session bug fixed

This commit is contained in:
unknown 2021-08-10 12:10:02 +05:30
parent 92ba6c9802
commit 90e67b22b4

View file

@ -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();