summary refs log tree commit diff
path: root/synapse/push/rulekinds.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-02-05 14:46:06 +0000
committerDavid Baker <dave@matrix.org>2015-02-05 14:46:37 +0000
commit2df41aa1386545f4237c0141c19db1fef85e7161 (patch)
tree81a778eae1cf69ef01471a5cef4d12502b22ac6f /synapse/push/rulekinds.py
parentnamespace rule IDs to be unique within their scope and rule type. (diff)
downloadsynapse-2df41aa1386545f4237c0141c19db1fef85e7161.tar.xz
Server default rules now of all kinds rather than all being at lowest prio.
Diffstat (limited to 'synapse/push/rulekinds.py')
-rw-r--r--synapse/push/rulekinds.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/push/rulekinds.py b/synapse/push/rulekinds.py
new file mode 100644
index 0000000000..763bdee58e
--- /dev/null
+++ b/synapse/push/rulekinds.py
@@ -0,0 +1,8 @@
+PRIORITY_CLASS_MAP = {
+        'underride': 1,
+        'sender': 2,
+        'room': 3,
+        'content': 4,
+        'override': 5,
+    }
+PRIORITY_CLASS_INVERSE_MAP = {v: k for k, v in PRIORITY_CLASS_MAP.items()}