Merge pull request #6725 from matrix-org/t3chguy/fix/18797

When creating subspaces properly set restricted join rule
This commit is contained in:
Michael Telatynski 2021-09-01 16:38:11 +01:00 committed by GitHub
commit 0d2f7db671
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ const CreateSubspaceDialog: React.FC<IProps> = ({ space, onAddExistingSpaceClick
}
try {
await createSpace(name, joinRule === JoinRule.Public, alias, topic, avatar, {}, { parentSpace });
await createSpace(name, joinRule === JoinRule.Public, alias, topic, avatar, {}, { parentSpace, joinRule });
onFinished(true);
} catch (e) {