Skip to content

Commit f6d577d

Browse files
committed
track RHS collapse state
1 parent 8228a7d commit f6d577d

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
@@ -39,6 +39,7 @@ module.exports = {
3939
var s = {
4040
logged_in: !!(MatrixClientPeg.get() && MatrixClientPeg.get().credentials),
4141
collapse_lhs: false,
42+
collapse_rhs: false,
4243
ready: false,
4344
};
4445
if (s.logged_in) {
@@ -221,6 +222,16 @@ module.exports = {
221222
collapse_lhs: false,
222223
});
223224
break;
225+
case 'hide_right_panel':
226+
this.setState({
227+
collapse_rhs: true,
228+
});
229+
break;
230+
case 'show_right_panel':
231+
this.setState({
232+
collapse_rhs: false,
233+
});
234+
break;
224235
}
225236
},
226237

0 commit comments

Comments
 (0)