dont remove tags prop from state on logout as we assume its always there

pull/21833/head
Bruno Windels 2019-02-07 14:41:19 +00:00
parent 7affcf7f4c
commit 64bb6d2b1f
1 changed files with 2 additions and 1 deletions

View File

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