Default redaction_retention_seconds to one year.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2026-01-28 12:14:09 +00:00
parent ae35e5a5b2
commit 90d4bda70b
2 changed files with 7 additions and 5 deletions

View File

@@ -2000,10 +2000,10 @@ pub struct Config {
/// Redaction retention period in seconds. /// Redaction retention period in seconds.
/// ///
/// By default the unredacted events are stored forever. /// By default the unredacted events are stored for one year.
/// ///
/// default: disabled /// default: 31536000
#[serde(default)] #[serde(default = "default_redaction_retention_seconds")]
pub redaction_retention_seconds: u64, pub redaction_retention_seconds: u64,
/// Allows users with `redact` power level to request unredacted events with /// Allows users with `redact` power level to request unredacted events with
@@ -3307,3 +3307,5 @@ fn default_max_make_join_attempts_per_join_attempt() -> usize { 48 }
fn default_max_join_attempts_per_join_request() -> usize { 3 } fn default_max_join_attempts_per_join_request() -> usize { 3 }
fn default_sso_grant_session_duration() -> Option<u64> { Some(300) } fn default_sso_grant_session_duration() -> Option<u64> { Some(300) }
fn default_redaction_retention_seconds() -> u64 { 31_536_000 }

View File

@@ -1721,9 +1721,9 @@
# Redaction retention period in seconds. # Redaction retention period in seconds.
# #
# By default the unredacted events are stored forever. # By default the unredacted events are stored for one year.
# #
#redaction_retention_seconds = disabled #redaction_retention_seconds = 31536000
# Allows users with `redact` power level to request unredacted events with # Allows users with `redact` power level to request unredacted events with
# MSC2815. # MSC2815.