From 64bb6d2b1fffdf33c34fb08a261bccd841cfd621 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 7 Feb 2019 14:41:19 +0000 Subject: [PATCH] dont remove tags prop from state on logout as we assume its always there --- src/stores/CustomRoomTagStore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stores/CustomRoomTagStore.js b/src/stores/CustomRoomTagStore.js index 1983fa7462..d898b5d32a 100644 --- a/src/stores/CustomRoomTagStore.js +++ b/src/stores/CustomRoomTagStore.js @@ -113,7 +113,8 @@ class CustomRoomTagStore extends EventEmitter { } break; case 'on_logged_out': { - this._state = {}; + // we assume to always have a tags object in the state + this._state = {tags: {}}; if (this._roomListStoreToken) { this._roomListStoreToken.remove(); this._roomListStoreToken = null;