persist cleared size sublists
This commit is contained in:
parent
a130c44803
commit
92b9a8cc1f
3 changed files with 15 additions and 3 deletions
|
@ -152,7 +152,11 @@ module.exports = React.createClass({
|
|||
if (typeof newSize === "string") {
|
||||
newSize = Number.MAX_SAFE_INTEGER;
|
||||
}
|
||||
this.subListSizes[id] = newSize;
|
||||
if (newSize === null) {
|
||||
delete this.subListSizes[id];
|
||||
} else {
|
||||
this.subListSizes[id] = newSize;
|
||||
}
|
||||
window.localStorage.setItem("mx_roomlist_sizes", JSON.stringify(this.subListSizes));
|
||||
// update overflow indicators
|
||||
this._checkSubListsOverflow();
|
||||
|
@ -716,4 +720,4 @@ module.exports = React.createClass({
|
|||
</div>
|
||||
);
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue