0
0
Fork 0
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:
Jason Volk 2023-02-16 10:52:16 -08:00
parent 416066d01b
commit 1607ce0a1f

View file

@ -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", "",
{