mirror of https://github.com/vector-im/riot-web
Merge pull request #6517 from matrix-org/t3chguy/cp/6516
[Release] createRoom, only send join rule event if we have a join rule to put in itpull/21833/head
commit
fe2993ef7f
|
@ -169,7 +169,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 New Issue