mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-22 12:54:57 -05:00
Don't start looping call unless enabled
This commit is contained in:
parent
80e14a8546
commit
fffe17b77d
@ -268,6 +268,7 @@ class EventsStore(
|
|||||||
"_censor_redactions", self._censor_redactions
|
"_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)
|
hs.get_clock().looping_call(_censor_redactions, 10 * 60 * 1000)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
Loading…
Reference in New Issue
Block a user