summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-02-21 11:29:49 +0000
committerErik Johnston <erik@matrix.org>2018-02-21 11:29:49 +0000
commit573712da6b720cb808e61e4cbd5426e85e58a161 (patch)
tree36f52238152fe56af72b02831657ae89d31dee6d
parentFix unit tests (diff)
downloadsynapse-573712da6b720cb808e61e4cbd5426e85e58a161.tar.xz
Update comments
-rw-r--r--synapse/push/bulk_push_rule_evaluator.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py
index 64e9a1da57..7c680659b6 100644
--- a/synapse/push/bulk_push_rule_evaluator.py
+++ b/synapse/push/bulk_push_rule_evaluator.py
@@ -190,12 +190,13 @@ class BulkPushRuleEvaluator(object):
                 if matches:
                     actions = [x for x in rule['actions'] if x != 'dont_notify']
                     if actions and 'notify' in actions:
+                        # Push rules say we should notify the user of this event
                         actions_by_user[uid] = actions
                     break
 
-        # Push rules say we should notify the user of this event,
-        # so we mark it in the DB in the staging area. (This
-        # will then get handled when we persist the event)
+        # Mark in the DB staging area the push actions for users who should be
+        # notified for this event. (This will then get handled when we persist
+        # the event)
         yield self.store.add_push_actions_to_staging(
             event.event_id, actions_by_user,
         )