forked from MirrorHub/synapse
Add default rule to suppress notices.
This commit is contained in:
parent
ed72fc3a50
commit
590b544f67
1 changed files with 13 additions and 0 deletions
|
@ -104,6 +104,19 @@ def make_base_override_rules():
|
|||
|
||||
def make_base_underride_rules():
|
||||
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',
|
||||
'conditions': [
|
||||
|
|
Loading…
Reference in a new issue