Skip to content

Commit 8228a7d

Browse files
committed
track whether the LHS is collapsed. (shouldn't this be vector specific too?)
1 parent c5e3891 commit 8228a7d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎src/controllers/pages/MatrixChat.js‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ module.exports = {
3838
getInitialState: function() {
3939
var s = {
4040
logged_in: !!(MatrixClientPeg.get() && MatrixClientPeg.get().credentials),
41+
collapse_lhs: false,
4142
ready: false,
4243
};
4344
if (s.logged_in) {
@@ -210,6 +211,16 @@ module.exports = {
210211
case 'notifier_enabled':
211212
this.forceUpdate();
212213
break;
214+
case 'hide_left_panel':
215+
this.setState({
216+
collapse_lhs: true,
217+
});
218+
break;
219+
case 'show_left_panel':
220+
this.setState({
221+
collapse_lhs: false,
222+
});
223+
break;
213224
}
214225
},
215226

0 commit comments

Comments
 (0)