Add default rule to suppress notices.

pull/4/merge
David Baker 10 years ago
parent ed72fc3a50
commit 590b544f67
  1. 13
      synapse/push/baserules.py

@ -104,6 +104,19 @@ def make_base_override_rules():
def make_base_underride_rules(): def make_base_underride_rules():
return [ return [
{
'rule_id': 'global/underride/.m.rule.suppress_notices',
'conditions': [
{
'kind': 'event_match',
'key': 'content.msgtype',
'pattern': 'm.notice',
}
],
'actions': [
'dont-notify',
]
},
{ {
'rule_id': 'global/underride/.m.rule.fallback', 'rule_id': 'global/underride/.m.rule.fallback',
'conditions': [ 'conditions': [

Loading…
Cancel
Save