From 259d1ecd1dc721b8dcda01194cc0d5a0c12a591e Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 20 Jan 2016 13:24:59 +0000 Subject: [PATCH] Don't generate push actions for our own events --- synapse/push/bulk_push_rule_evaluator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py index 1000ae630..f27ae62db 100644 --- a/synapse/push/bulk_push_rule_evaluator.py +++ b/synapse/push/bulk_push_rule_evaluator.py @@ -107,6 +107,9 @@ class BulkPushRuleEvaluator: if len(filtered) == 0: continue + if filtered.sender == uid: + continue + for rule in rules: if 'enabled' in rule and not rule['enabled']: continue