Merge pull request #2413 from matrix-org/travis/room-list-go-faster-please
Don't reset cached room list values when they are falsey
This commit is contained in:
commit
58cff9f689
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ class RoomListStore extends Store {
|
|||
const roomCache = this._state.roomCache;
|
||||
if (!roomCache[roomId]) roomCache[roomId] = {};
|
||||
|
||||
if (value) roomCache[roomId][type] = value;
|
||||
if (typeof value !== "undefined") roomCache[roomId][type] = value;
|
||||
else delete roomCache[roomId][type];
|
||||
|
||||
this._setState({roomCache});
|
||||
|
|
Loading…
Reference in a new issue