Skip to content

Commit

Permalink
INF-715 Don't notify on edited messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bradtgmurray committed Apr 29, 2022
1 parent 5cc23c1 commit 92761ff
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions synapse/push/baserules.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,20 @@ def make_base_prepend_rules(
],
"actions": ["dont_notify"],
},
# We don't want to notify on edits in Beeper land. Not only can this be confusing in real time (2 notifications,
# one message) but it's also especially confusing when a bridge needs to edit a previously backfilled message.
{
"rule_id": "global/override/.com.beeper.suppress_edits",
"conditions": [
{
"kind": "event_match",
"key": "content.m.relates_to.rel_type",
"pattern": "m.replace",
"_cache_key": "_m_relates_to_rel_type",
},
],
"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 92761ff

Please sign in to comment.