diff --git a/src/components/structures/LoggedInView.js b/src/components/structures/LoggedInView.js index ddfcbd1570..3024677388 100644 --- a/src/components/structures/LoggedInView.js +++ b/src/components/structures/LoggedInView.js @@ -164,9 +164,11 @@ const LoggedInView = React.createClass({ const collapseConfig = { toggleSize: 260 - 50, onCollapsed: (collapsed) => { - this.setState({collapseLhs: collapsed}); if (collapsed) { + dis.dispatch({action: "hide_left_panel"}, true); window.localStorage.setItem("mx_lhs_size", '0'); + } else { + dis.dispatch({action: "show_left_panel"}, true); } }, onResized: (size) => { @@ -540,7 +542,7 @@ const LoggedInView = React.createClass({