From b7246404be38eac3b0d807cb4de6b24a840f032f Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 10 Aug 2021 10:05:19 +0100 Subject: [PATCH] Fix create room dialog in spaces no longer adding to the space --- src/components/views/dialogs/CreateRoomDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/dialogs/CreateRoomDialog.tsx b/src/components/views/dialogs/CreateRoomDialog.tsx index 597fe33777..d573882f40 100644 --- a/src/components/views/dialogs/CreateRoomDialog.tsx +++ b/src/components/views/dialogs/CreateRoomDialog.tsx @@ -116,8 +116,8 @@ export default class CreateRoomDialog extends React.Component { opts.associatedWithCommunity = CommunityPrototypeStore.instance.getSelectedCommunityId(); } + opts.parentSpace = this.props.parentSpace; if (this.props.parentSpace && this.state.joinRule === JoinRule.Restricted) { - opts.parentSpace = this.props.parentSpace; opts.joinRule = JoinRule.Restricted; }