diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2020-12-30 14:34:46 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2020-12-30 14:36:31 +0000 |
commit | bc0b59e51ad807f12130ca854dea6c72698dec8e (patch) | |
tree | 3c58010fc0a31fb5b6cbce2cdd920b5b0abce771 /synapse/push/pusherpool.py | |
parent | Move AccountValidityConfig to its own config file (diff) | |
download | synapse-bc0b59e51ad807f12130ca854dea6c72698dec8e.tar.xz |
Change account validity config option instances github/anoa/testbla anoa/testbla
Diffstat (limited to 'synapse/push/pusherpool.py')
-rw-r--r-- | synapse/push/pusherpool.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/push/pusherpool.py b/synapse/push/pusherpool.py index 9fcc0b8a64..748b1407c6 100644 --- a/synapse/push/pusherpool.py +++ b/synapse/push/pusherpool.py @@ -62,7 +62,7 @@ class PusherPool: self.store = self.hs.get_datastore() self.clock = self.hs.get_clock() - self._account_validity = hs.config.account_validity + self._account_validity_enabled = hs.config.account_validity_enabled # We shard the handling of push notifications by user ID. self._pusher_shard_config = hs.config.push.pusher_shard_config @@ -223,7 +223,7 @@ class PusherPool: for u in users_affected: # Don't push if the user account has expired - if self._account_validity.enabled: + if self._account_validity_enabled: expired = await self.store.is_account_expired( u, self.clock.time_msec() ) @@ -251,7 +251,7 @@ class PusherPool: for u in users_affected: # Don't push if the user account has expired - if self._account_validity.enabled: + if self._account_validity_enabled: expired = await self.store.is_account_expired( u, self.clock.time_msec() ) |