1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Properly gate SpaceRoomView behind labs

This commit is contained in:
Michael Telatynski
2021-03-11 11:04:39 +00:00
parent 3ac4cb49fc
commit 4ca838d4c7

View File

@@ -1874,7 +1874,7 @@ export default class RoomView extends React.Component<IProps, IState> {
);
}
if (this.state.room?.isSpaceRoom()) {
if (SettingsStore.getValue("feature_spaces") && this.state.room?.isSpaceRoom()) {
return <SpaceRoomView
space={this.state.room}
justCreatedOpts={this.props.justCreatedOpts}