diff options
author | David Baker <dave@matrix.org> | 2015-01-30 15:54:29 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-01-30 15:54:51 +0000 |
commit | b4b892f4a3f9194289f57ed2d166eca26da41594 (patch) | |
tree | d9274d773cbb5fb6a110651d57e1e598f9dc65c3 /synapse/push/baserules.py | |
parent | Merge pull request #41 from matrix-org/client_v2_sync (diff) | |
download | synapse-b4b892f4a3f9194289f57ed2d166eca26da41594.tar.xz |
Spit out server default rules too.
Diffstat (limited to 'synapse/push/baserules.py')
-rw-r--r-- | synapse/push/baserules.py | 11 |
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 |