mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Add default rule to suppress notices.
This commit is contained in:
parent
ed72fc3a50
commit
590b544f67
@ -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…
Reference in New Issue
Block a user