mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-19 00:11:47 +01: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