diff --git a/src/components/structures/RoomSubList.js b/src/components/structures/RoomSubList.js index bd09241ce0..b02fc7902a 100644 --- a/src/components/structures/RoomSubList.js +++ b/src/components/structures/RoomSubList.js @@ -389,16 +389,14 @@ const RoomSubList = React.createClass({ : subListContent; } else { const Loader = sdk.getComponent("elements.Spinner"); - if (this.props.showSpinner && !this.state.hidden) { + if (this.props.showSpinner) { content = ; - } else if (this.state.hidden) { - content = undefined; - } // else show content calculated above + } return (
{this.props.alwaysShowHeader ? this._getHeaderJsx() : undefined} - { content } + { this.state.hidden ? undefined : content }
); }