summary refs log tree commit diff
path: root/synapse/push
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-01-30 15:54:29 +0000
committerDavid Baker <dave@matrix.org>2015-01-30 15:54:51 +0000
commitb4b892f4a3f9194289f57ed2d166eca26da41594 (patch)
treed9274d773cbb5fb6a110651d57e1e598f9dc65c3 /synapse/push
parentMerge pull request #41 from matrix-org/client_v2_sync (diff)
downloadsynapse-b4b892f4a3f9194289f57ed2d166eca26da41594.tar.xz
Spit out server default rules too.
Diffstat (limited to 'synapse/push')
-rw-r--r--synapse/push/baserules.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/synapse/push/baserules.py b/synapse/push/baserules.py
index bd162baade..382de118e0 100644
--- a/synapse/push/baserules.py
+++ b/synapse/push/baserules.py
@@ -1,9 +1,5 @@
 def make_base_rules(user_name):
-    """
-    Nominally we reserve priority class 0 for these rules, although
-    in practice we just append them to the end so we don't actually need it.
-    """
-    return [
+    rules = [
         {
             'conditions': [
                 {
@@ -46,4 +42,7 @@ def make_base_rules(user_name):
                 }
             ]
         }
-    ]
\ No newline at end of file
+    ]
+    for r in rules:
+        r['priority_class'] = 0
+    return rules
\ No newline at end of file