Fix spotlight cmd-k wrongly expanding left panel (#7463)

This commit is contained in:
Michael Telatynski 2022-01-05 10:07:04 +00:00 committed by GitHub
parent 6eea416e7e
commit ea7ac453bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 42 deletions

View file

@ -794,6 +794,8 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
});
break;
case 'focus_room_filter': // for CtrlOrCmd+K to work by expanding the left panel first
if (SettingsStore.getValue("feature_spotlight")) break; // don't expand if spotlight enabled
// fallthrough
case 'show_left_panel':
this.setState({
collapseLhs: false,