From 90e67b22b424762c52e348b26ccd6bc9b14d29c2 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 10 Aug 2021 12:10:02 +0530 Subject: [PATCH] clear stores in invalid session bug fixed --- src/client/initMatrix.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/initMatrix.js b/src/client/initMatrix.js index 596bc2d4..26d07e6c 100644 --- a/src/client/initMatrix.js +++ b/src/client/initMatrix.js @@ -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();