diff options
author | Erik Johnston <erik@matrix.org> | 2019-09-09 13:23:41 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-09-09 13:23:41 +0100 |
commit | 80e14a8546efb9e2f9edec3b1de0a8b943351252 (patch) | |
tree | 90b97f42e227cbb06917afc8609b30a2d6384537 /synapse/storage/events.py | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/censor_red... (diff) | |
download | synapse-80e14a8546efb9e2f9edec3b1de0a8b943351252.tar.xz |
Handle setting retention period to 0
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r-- | synapse/storage/events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py index a5d13ddc49..77ba7eb2af 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -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( |