Fix expand/collapse state wrong in metaspaces (#8952)

This commit is contained in:
Michael Telatynski 2022-07-01 08:53:47 +01:00 committed by GitHub
parent 2bc6575503
commit e72598e40b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -637,7 +637,7 @@ export default class RoomSublist extends React.Component<IProps, IState> {
const collapseClasses = classNames({
'mx_RoomSublist_collapseBtn': true,
'mx_RoomSublist_collapseBtn_collapsed': !this.state.isExpanded,
'mx_RoomSublist_collapseBtn_collapsed': !this.state.isExpanded && !this.props.forceExpanded,
});
const classes = classNames({