diff options
author | Patrick Cloke <patrickc@matrix.org> | 2022-08-26 15:01:10 -0400 |
---|---|---|
committer | Patrick Cloke <patrickc@matrix.org> | 2022-08-26 15:01:10 -0400 |
commit | 8ecdfa29c4c606ce1752ce2498998817ca454f4a (patch) | |
tree | e146dc9e66936cb8f23030d3c4c9805590d53a7f | |
parent | 1.65.0 (diff) | |
download | synapse-8ecdfa29c4c606ce1752ce2498998817ca454f4a.tar.xz |
Disable unread counts. v1.65.0.post1.dev1
-rw-r--r-- | synapse/push/bulk_push_rule_evaluator.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py index 713dcf6950..6840ef5437 100644 --- a/synapse/push/bulk_push_rule_evaluator.py +++ b/synapse/push/bulk_push_rule_evaluator.py @@ -251,7 +251,9 @@ class BulkPushRuleEvaluator: # This can happen due to out of band memberships return - count_as_unread = _should_count_as_unread(event, context) + # Disable counting as unread as it is unused and can cause additional + # (unwanted) rows to be added to the event_push_actions table. + count_as_unread = False rules_by_user = await self._get_rules_for_event(event) actions_by_user: Dict[str, List[Union[dict, str]]] = {} |