track RHS collapse state

pull/21833/head
Matthew Hodgson 2015-10-11 16:07:01 +01:00
parent 8228a7d485
commit f6d577d0c6
1 changed files with 11 additions and 0 deletions

View File

@ -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;
}
},