1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-23 21:02:09 +03:00

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