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

@ -558,9 +558,19 @@ pub struct Config {
#[serde(default = "true_fn")]
pub allow_federation: bool,
/// Allows federation requests to be made to itself
///
/// This isn't intended and is very likely a bug if federation requests are
/// being sent to yourself. This currently mainly exists for development
/// purposes.
#[serde(default)]
pub federation_loopback: bool,
/// Always calls /forget on behalf of the user if leaving a room. This is a
/// part of MSC4267 "Automatically forgetting rooms on leave"
#[serde(default)]
pub forget_forced_upon_leave: bool,
/// Set this to true to require authentication on the normally
/// unauthenticated profile retrieval endpoints (GET)
/// "/_matrix/client/v3/profile/{userId}".