mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Handle setting retention period to 0
This commit is contained in:
parent
591d82f06b
commit
80e14a8546
@ -165,7 +165,7 @@ class ServerConfig(Config):
|
||||
# How long to keep redacted events in the database in unredacted form
|
||||
# before redacting them.
|
||||
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(
|
||||
redaction_retention_period
|
||||
)
|
||||
|
@ -1566,7 +1566,7 @@ class EventsStore(
|
||||
Deferred
|
||||
"""
|
||||
|
||||
if not self.hs.config.redaction_retention_period:
|
||||
if self.hs.config.redaction_retention_period is None:
|
||||
return
|
||||
|
||||
max_pos = yield self.find_first_stream_ordering_after_ts(
|
||||
|
Loading…
Reference in New Issue
Block a user