Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 6877c8f

Browse files
authored
Merge pull request #6587 from matrix-org/t3chguy/fix/18465
Fix create room dialog in spaces no longer adding to the space
2 parents 6eed09f + b724640 commit 6877c8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/dialogs/CreateRoomDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
116116
opts.associatedWithCommunity = CommunityPrototypeStore.instance.getSelectedCommunityId();
117117
}
118118

119+
opts.parentSpace = this.props.parentSpace;
119120
if (this.props.parentSpace && this.state.joinRule === JoinRule.Restricted) {
120-
opts.parentSpace = this.props.parentSpace;
121121
opts.joinRule = JoinRule.Restricted;
122122
}
123123

0 commit comments

Comments
 (0)