diff --git a/src/components/structures/LoggedInView.js b/src/components/structures/LoggedInView.js index 1c96f6bac1..68ff9e48de 100644 --- a/src/components/structures/LoggedInView.js +++ b/src/components/structures/LoggedInView.js @@ -170,11 +170,7 @@ const LoggedInView = React.createClass({ } }, onResized: (size, item) => { - if (item.classList.contains("mx_LeftPanel_container")) { - window.localStorage.setItem("mx_lhs_size", '' + size); - } else if(item.classList.contains("mx_RightPanel")) { - window.localStorage.setItem("mx_rhs_size", '' + size); - } + window.localStorage.setItem("mx_lhs_size", '' + size); }, }; const resizer = new Resizer( @@ -190,10 +186,6 @@ const LoggedInView = React.createClass({ if (lhsSize !== null) { this.resizer.forHandleAt(0).resize(parseInt(lhsSize, 10)); } - const rhsSize = window.localStorage.getItem("mx_rhs_size"); - if (rhsSize !== null) { - this.resizer.forHandleAt(1).resize(parseInt(rhsSize, 10)); - } }, onAccountData: function(event) { @@ -432,7 +424,6 @@ const LoggedInView = React.createClass({ const ServerLimitBar = sdk.getComponent('globals.ServerLimitBar'); let page_element; - let right_panel = ''; switch (this.props.page_type) { case PageTypes.RoomView: @@ -457,7 +448,6 @@ const LoggedInView = React.createClass({ referralBaseUrl={this.props.config.referralBaseUrl} teamToken={this.props.teamToken} />; - if (!this.props.collapseRhs) right_panel = ; break; case PageTypes.MyGroups: @@ -489,7 +479,8 @@ const LoggedInView = React.createClass({ case PageTypes.UserView: page_element = null; // deliberately null for now - right_panel = ; + // TODO: fix/remove UserView + // right_panel = ; break; case PageTypes.GroupView: page_element = ; - if (!this.props.collapseRhs) right_panel = ; break; } @@ -555,10 +545,7 @@ const LoggedInView = React.createClass({ disabled={this.props.leftDisabled} /> -
- { page_element } -
- { right_panel } + { page_element }