Implement room purge after last local user leaves. (resolves #83)

Consume a state_lock for room delete call.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-08-30 11:45:32 +00:00
1 parent 7c19d1e1ff
commit aa413ae601
5 files changed
+121 -35

No files matched your search

+13
View File
@@ -1929,6 +1929,19 @@ pub struct Config {
#[serde(default)]
pub hydra_backports: bool,
/// Delete rooms when the last user from this server leaves. This feature is
/// experimental and for the purpose of least-surprise is not enabled by
/// default but can be enabled for deployments interested in conserving
/// space. It may eventually default to true in a future release.
///
/// Note that not all pathways which can remove the last local user
/// currently invoke this operation, so in some cases you may find the room
/// still exists.
///
/// default: false
#[serde(default)]
pub delete_rooms_after_leave: bool,
// external structure; separate section
#[serde(default)]
pub blurhashing: BlurhashConfig,