mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Merge pull request #4995 from matrix-org/t3chguy/room-list/14509
Notify left panel of resizing when it is collapsed&expanded
This commit is contained in:
commit
19d733561d
1 changed files with 4 additions and 0 deletions
|
@ -675,12 +675,16 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
||||||
case 'hide_left_panel':
|
case 'hide_left_panel':
|
||||||
this.setState({
|
this.setState({
|
||||||
collapseLhs: true,
|
collapseLhs: true,
|
||||||
|
}, () => {
|
||||||
|
this.state.resizeNotifier.notifyLeftHandleResized();
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'focus_room_filter': // for CtrlOrCmd+K to work by expanding the left panel first
|
case 'focus_room_filter': // for CtrlOrCmd+K to work by expanding the left panel first
|
||||||
case 'show_left_panel':
|
case 'show_left_panel':
|
||||||
this.setState({
|
this.setState({
|
||||||
collapseLhs: false,
|
collapseLhs: false,
|
||||||
|
}, () => {
|
||||||
|
this.state.resizeNotifier.notifyLeftHandleResized();
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'panel_disable': {
|
case 'panel_disable': {
|
||||||
|
|
Loading…
Reference in a new issue