mirror of
https://github.com/matrix-construct/construct
synced 2025-03-14 05:20:17 +01:00
ircd:Ⓜ️:essential: Add join_authorised_via_users_server and allow keys.
This commit is contained in:
parent
46cae6f24b
commit
994fc56f8e
1 changed files with 16 additions and 4 deletions
|
@ -694,7 +694,12 @@ try
|
|||
{
|
||||
"content", json::members
|
||||
{
|
||||
{ "join_rule", contents.at("join_rule") }
|
||||
{ "join_rule", contents.at("join_rule") },
|
||||
{ "allow",
|
||||
contents.has("allow")?
|
||||
contents.at("allow"):
|
||||
json::value{}
|
||||
},
|
||||
}
|
||||
}};
|
||||
|
||||
|
@ -706,7 +711,12 @@ try
|
|||
{
|
||||
"content", json::members
|
||||
{
|
||||
{ "membership", contents.at("membership") }
|
||||
{ "membership", contents.at("membership") },
|
||||
{ "join_authorised_via_users_server",
|
||||
contents.has("join_authorised_via_users_server")?
|
||||
contents.at("join_authorised_via_users_server"):
|
||||
json::value{}
|
||||
},
|
||||
}
|
||||
}};
|
||||
|
||||
|
@ -825,7 +835,8 @@ try
|
|||
if(content.has("join_rule"))
|
||||
content = json::stringify(essential, json::members
|
||||
{
|
||||
{ "join_rule", content.at("join_rule") }
|
||||
{ "join_rule", content.at("join_rule") },
|
||||
{ "allow", content.get("allow") }
|
||||
});
|
||||
}
|
||||
else if(type == "m.room.member")
|
||||
|
@ -833,7 +844,8 @@ try
|
|||
if(content.has("membership"))
|
||||
content = json::stringify(essential, json::members
|
||||
{
|
||||
{ "membership", content.at("membership") }
|
||||
{ "membership", content.at("membership") },
|
||||
{ "join_authorised_via_users_server", content.get("join_authorised_via_users_server") },
|
||||
});
|
||||
}
|
||||
else if(type == "m.room.power_levels")
|
||||
|
|
Loading…
Add table
Reference in a new issue