mirror of
https://github.com/element-hq/synapse
synced 2024-09-04 00:50:10 +00:00
Use set_tweak instead of set_sound
This commit is contained in:
parent
09601255f5
commit
9a71add1c0
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -38,7 +38,8 @@ def make_base_rules(user_name):
|
|||
'actions': [
|
||||
'notify',
|
||||
{
|
||||
'set_sound': 'default'
|
||||
'set_tweak': 'sound',
|
||||
'value': 'default'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue