mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-30 10:51:13 +02:00
Merge pull request #6516 from matrix-org/t3chguy/fix/18301
This commit is contained in:
commit
21bb8e00ab
@ -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…
x
Reference in New Issue
Block a user