diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-03-15 14:06:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 14:06:05 -0400 |
commit | dda9b7fc4d2e6ca84a1a994a7ff1943b590e71df (patch) | |
tree | 9417b4b937d592daa7cb5ab692017b92df4fb50d /synapse/push | |
parent | Add tests for database transaction callbacks (#12198) (diff) | |
download | synapse-dda9b7fc4d2e6ca84a1a994a7ff1943b590e71df.tar.xz |
Use the ignored_users table to test event visibility & sync. (#12225)
Instead of fetching the raw account data and re-parsing it. The ignored_users table is a denormalised version of the account data for quick searching.
Diffstat (limited to 'synapse/push')
-rw-r--r-- | synapse/push/bulk_push_rule_evaluator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py index 8140afcb6b..030898e4d0 100644 --- a/synapse/push/bulk_push_rule_evaluator.py +++ b/synapse/push/bulk_push_rule_evaluator.py @@ -213,7 +213,7 @@ class BulkPushRuleEvaluator: if not event.is_state(): ignorers = await self.store.ignored_by(event.sender) else: - ignorers = set() + ignorers = frozenset() for uid, rules in rules_by_user.items(): if event.sender == uid: |