mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 14:43:51 +01:00
Handle setting retention period to 0
This commit is contained in:
parent
591d82f06b
commit
80e14a8546
2 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ class ServerConfig(Config):
|
||||||
# How long to keep redacted events in the database in unredacted form
|
# How long to keep redacted events in the database in unredacted form
|
||||||
# before redacting them.
|
# before redacting them.
|
||||||
redaction_retention_period = config.get("redaction_retention_period")
|
redaction_retention_period = config.get("redaction_retention_period")
|
||||||
if redaction_retention_period:
|
if redaction_retention_period is not None:
|
||||||
self.redaction_retention_period = self.parse_duration(
|
self.redaction_retention_period = self.parse_duration(
|
||||||
redaction_retention_period
|
redaction_retention_period
|
||||||
)
|
)
|
||||||
|
|
|
@ -1566,7 +1566,7 @@ class EventsStore(
|
||||||
Deferred
|
Deferred
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not self.hs.config.redaction_retention_period:
|
if self.hs.config.redaction_retention_period is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
max_pos = yield self.find_first_stream_ordering_after_ts(
|
max_pos = yield self.find_first_stream_ordering_after_ts(
|
||||||
|
|
Loading…
Reference in a new issue