Skip to content
Snippets Groups Projects
Unverified Commit 92d50e3c authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Merge pull request #3753 from matrix-org/erikj/fix_no_server_noticse

Fix bug where we broke sync when using limit_usage_by_mau
parents e94cdbae 9b1bc593
No related branches found
No related tags found
No related merge requests found
Fix bug where we broke sync when using limit_usage_by_mau but hadn't configured server notices
......@@ -66,6 +66,10 @@ class ResourceLimitsServerNotices(object):
if self._config.limit_usage_by_mau is False:
return
if not self._server_notices_manager.is_enabled():
# Don't try and send server notices unles they've been enabled
return
timestamp = yield self._store.user_last_seen_monthly_active(user_id)
if timestamp is None:
# This user will be blocked from receiving the notice anyway.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment