From ae2c8d8e2eb36fed565b2038d83f1f22529cf287 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Tue, 13 Apr 2021 19:56:59 +0200 Subject: [PATCH] Reset ALL data on logout --- src/services/matrix.service.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/services/matrix.service.js b/src/services/matrix.service.js index ca209dd..8418a94 100644 --- a/src/services/matrix.service.js +++ b/src/services/matrix.service.js @@ -159,6 +159,11 @@ export default { localStorage.removeItem('user'); this.$store.commit("setCurrentRoomId", null); + this.rooms = []; + this.userDisplayName = null; + this.userAvatar = null; + this.currentRoom = null; + this.notificationCount = 0; }, initClient() {