From 35fc5307b6b181c85053a3b17e365b45c05c3f2d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 26 Nov 2018 16:45:55 +0100 Subject: [PATCH] remove unneeded params (as we're going to change their meaning) --- src/components/structures/LoggedInView.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/structures/LoggedInView.js b/src/components/structures/LoggedInView.js index 585fd0f7d4..635c5de44e 100644 --- a/src/components/structures/LoggedInView.js +++ b/src/components/structures/LoggedInView.js @@ -164,15 +164,13 @@ const LoggedInView = React.createClass({ }; const collapseConfig = { toggleSize: 260 - 50, - onCollapsed: (collapsed, item) => { - if (item.classList.contains("mx_LeftPanel_container")) { - this.setState({collapseLhs: collapsed}); - if (collapsed) { - window.localStorage.setItem("mx_lhs_size", '0'); - } + onCollapsed: (collapsed) => { + this.setState({collapseLhs: collapsed}); + if (collapsed) { + window.localStorage.setItem("mx_lhs_size", '0'); } }, - onResized: (size, item) => { + onResized: (size) => { window.localStorage.setItem("mx_lhs_size", '' + size); }, };