clear stores in invalid session bug fixed
authorunknown <ajbura@gmail.com>
Tue, 10 Aug 2021 06:40:02 +0000 (12:10 +0530)
committerunknown <ajbura@gmail.com>
Tue, 10 Aug 2021 06:40:02 +0000 (12:10 +0530)
src/client/initMatrix.js

index 596bc2d44be1548bfd6b8ad6c02fbf5cfbe87c8d..26d07e6c17ec8a90390cc11d2220a27fa4eb1edd 100644 (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();