Merge pull request #6516 from matrix-org/t3chguy/fix/18301
This commit is contained in:
commit
21bb8e00ab
1 changed files with 2 additions and 1 deletions
|
@ -184,7 +184,8 @@ export default async function createRoom(opts: IOpts): Promise<string | null> {
|
|||
}
|
||||
}
|
||||
|
||||
if (opts.joinRule !== JoinRule.Restricted) {
|
||||
// we handle the restricted join rule in the parentSpace handling block above
|
||||
if (opts.joinRule && opts.joinRule !== JoinRule.Restricted) {
|
||||
createOpts.initial_state.push({
|
||||
type: EventType.RoomJoinRules,
|
||||
content: { join_rule: opts.joinRule },
|
||||
|
|
Loading…
Reference in a new issue