track RHS collapse state

This commit is contained in:
Matthew Hodgson 2015-10-11 16:07:01 +01:00
parent 8228a7d485
commit f6d577d0c6

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