summary refs log tree commit diff
path: root/synapse/push/__init__.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-02-03 16:06:31 +0000
committerDavid Baker <dave@matrix.org>2015-02-03 16:06:31 +0000
commit9a71add1c077130bf2cf3998ab0dd2226ba0c75b (patch)
tree59f5fc35f764476b9e08022717af6a1fe267bf49 /synapse/push/__init__.py
parentMerge pull request #46 from matrix-org/identicons (diff)
downloadsynapse-9a71add1c077130bf2cf3998ab0dd2226ba0c75b.tar.xz
Use set_tweak instead of set_sound
Diffstat (limited to 'synapse/push/__init__.py')
-rw-r--r--synapse/push/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/push/__init__.py b/synapse/push/__init__.py
index 28e5dae81d..00f3513c23 100644
--- a/synapse/push/__init__.py
+++ b/synapse/push/__init__.py
@@ -400,8 +400,8 @@ def _tweaks_for_actions(actions):
     for a in actions:
         if not isinstance(a, dict):
             continue
-        if 'set_sound' in a:
-            tweaks['sound'] = a['set_sound']
+        if 'set_tweak' in a and 'value' in a:
+            tweaks[a['set_tweak']] = a['value']
     return tweaks