mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-17 06:19:10 -04:00
Add room member count condition and default rule to make a noise on rooms of only 2 people.
This commit is contained in:
parent
1251d017c1
commit
322a047502
3 changed files with 63 additions and 6 deletions
|
@ -32,4 +32,18 @@ def make_base_rules(user_name):
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
'conditions': [
|
||||
{
|
||||
'kind': 'room_member_count',
|
||||
'is': '2'
|
||||
}
|
||||
],
|
||||
'actions': [
|
||||
'notify',
|
||||
{
|
||||
'set_sound': 'default'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue