summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Cloke <patrickc@matrix.org>2022-08-26 15:01:10 -0400
committerPatrick Cloke <patrickc@matrix.org>2022-08-26 15:01:10 -0400
commit8ecdfa29c4c606ce1752ce2498998817ca454f4a (patch)
treee146dc9e66936cb8f23030d3c4c9805590d53a7f
parent1.65.0 (diff)
downloadsynapse-8ecdfa29c4c606ce1752ce2498998817ca454f4a.tar.xz
Disable unread counts. v1.65.0.post1.dev1
-rw-r--r--synapse/push/bulk_push_rule_evaluator.py4
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]]] = {}