Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Don't reset cached room list values when they are falsey #2413

Merged
merged 1 commit into from
Jan 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/stores/RoomListStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down