mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd:Ⓜ️:room::create: Generate join_rules event for all non-internal rooms.
This commit is contained in:
parent
416066d01b
commit
1607ce0a1f
1 changed files with 2 additions and 1 deletions
|
@ -146,7 +146,8 @@ try
|
|||
"invite"
|
||||
};
|
||||
|
||||
if(join_rule != "invite") try
|
||||
// Riot won't allow changing the join_rules unless the event exists.
|
||||
if(join_rule != "invite" || createroom::spec_preset(preset)) try
|
||||
{
|
||||
send(room, creator, "m.room.join_rules", "",
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue