implement MSC4267 automatically forgetting room on leave

Signed-off-by: strawberry <june@girlboss.ceo>
This commit is contained in:
strawberry 2025-03-08 03:07:42 -05:00
parent bb0b57efb8
commit c8a730c29e
No known key found for this signature in database
4 changed files with 33 additions and 3 deletions

View file

@ -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 })
}