0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-14 22:11:47 +01:00

Don't start looping call unless enabled

This commit is contained in:
Erik Johnston 2019-09-09 13:24:24 +01:00
parent 80e14a8546
commit fffe17b77d

View file

@ -268,6 +268,7 @@ class EventsStore(
"_censor_redactions", self._censor_redactions
)
if self.hs.config.redaction_retention_period is not None:
hs.get_clock().looping_call(_censor_redactions, 10 * 60 * 1000)
@defer.inlineCallbacks