From f6d577d0c68e771c87f995abe4ecf57a4feb04fd Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 11 Oct 2015 16:07:01 +0100 Subject: [PATCH] track RHS collapse state --- src/controllers/pages/MatrixChat.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/controllers/pages/MatrixChat.js b/src/controllers/pages/MatrixChat.js index a530a3b4cf..2120b2fd10 100644 --- a/src/controllers/pages/MatrixChat.js +++ b/src/controllers/pages/MatrixChat.js @@ -39,6 +39,7 @@ module.exports = { var s = { logged_in: !!(MatrixClientPeg.get() && MatrixClientPeg.get().credentials), collapse_lhs: false, + collapse_rhs: false, ready: false, }; if (s.logged_in) { @@ -221,6 +222,16 @@ module.exports = { collapse_lhs: false, }); break; + case 'hide_right_panel': + this.setState({ + collapse_rhs: true, + }); + break; + case 'show_right_panel': + this.setState({ + collapse_rhs: false, + }); + break; } },