implement MSC4267 automatically forgetting room on leave
Signed-off-by: strawberry <june@girlboss.ceo>
This commit is contained in:
parent
bb0b57efb8
commit
c8a730c29e
4 changed files with 33 additions and 3 deletions
|
@ -42,5 +42,12 @@ pub(crate) async fn get_capabilities_route(
|
|||
.set("uk.tcpip.msc4133.profile_fields", json!({"enabled": true}))
|
||||
.expect("this is valid JSON we created");
|
||||
|
||||
capabilities
|
||||
.set(
|
||||
"org.matrix.msc4267.forget_forced_upon_leave",
|
||||
json!({"enabled": services.config.forget_forced_upon_leave}),
|
||||
)
|
||||
.expect("valid JSON we created");
|
||||
|
||||
Ok(get_capabilities::v3::Response { capabilities })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue