diff options
author | David Baker <dave@matrix.org> | 2015-01-29 17:12:11 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-01-29 17:12:11 +0000 |
commit | 4bdfce30d70dddaa7c6de551fe3c9eed4a899d49 (patch) | |
tree | 35558031f002edd29ccad40b95fa6d751fcb83bc | |
parent | Allow kind to be set to null to delete a pusher. (diff) | |
download | synapse-4bdfce30d70dddaa7c6de551fe3c9eed4a899d49.tar.xz |
Renumber priority classes so we can use 0 for defaults.
Diffstat (limited to '')
-rw-r--r-- | synapse/rest/client/v1/push_rule.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/rest/client/v1/push_rule.py b/synapse/rest/client/v1/push_rule.py index 2b1e930326..0f78fa667c 100644 --- a/synapse/rest/client/v1/push_rule.py +++ b/synapse/rest/client/v1/push_rule.py @@ -26,11 +26,11 @@ import json class PushRuleRestServlet(ClientV1RestServlet): PATTERN = client_path_pattern("/pushrules/.*$") PRIORITY_CLASS_MAP = { - 'underride': 0, - 'sender': 1, - 'room': 2, - 'content': 3, - 'override': 4, + 'underride': 1, + 'sender': 2, + 'room': 3, + 'content': 4, + 'override': 5, } PRIORITY_CLASS_INVERSE_MAP = {v: k for k, v in PRIORITY_CLASS_MAP.items()} SLIGHTLY_PEDANTIC_TRAILING_SLASH_ERROR = ( |