diff options
author | David Baker <dave@matrix.org> | 2015-01-30 14:46:03 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-01-30 14:46:45 +0000 |
commit | 322a047502c938bfe9a6acab47e370e69fefc522 (patch) | |
tree | 24f42d86ad2d47707a2417e7cfaabcf8482c0fc4 /synapse/push/baserules.py | |
parent | Merge pull request #38 from matrix-org/new_state_resolution (diff) | |
download | synapse-322a047502c938bfe9a6acab47e370e69fefc522.tar.xz |
Add room member count condition and default rule to make a noise on rooms of only 2 people.
Diffstat (limited to 'synapse/push/baserules.py')
-rw-r--r-- | synapse/push/baserules.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/synapse/push/baserules.py b/synapse/push/baserules.py index 4caf7beed2..bd162baade 100644 --- a/synapse/push/baserules.py +++ b/synapse/push/baserules.py @@ -32,4 +32,18 @@ def make_base_rules(user_name): } ] }, + { + 'conditions': [ + { + 'kind': 'room_member_count', + 'is': '2' + } + ], + 'actions': [ + 'notify', + { + 'set_sound': 'default' + } + ] + } ] \ No newline at end of file |