Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Don't send notifications for power level events
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Aug 26, 2022
1 parent 1d86a9a commit 3d1648f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions synapse/push/baserules.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,18 @@ def make_base_prepend_rules(
],
"actions": ["dont_notify"],
},
{
"rule_id": "global/override/.m.rule.suppress_power_levels",
"conditions": [
{
"kind": "event_match",
"key": "type",
"pattern": "m.room.power_levels",
"_cache_key": "_suppress_power_levels",
}
],
"actions": ["dont_notify"],
},
# NB. .m.rule.invite_for_me must be higher prio than .m.rule.member_event
# otherwise invites will be matched by .m.rule.member_event
{
Expand Down

0 comments on commit 3d1648f

Please sign in to comment.