mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-25 14:15:18 -04:00
Update intentional mentions (MSC3952) to depend on exact_event_match
(MSC3758). (#15037)
This replaces the specific `is_room_mention` push rule condition used in MSC3952 with the generic `exact_event_match` push rule condition from MSC3758. No functionality changes due to this.
This commit is contained in:
parent
d1efc47925
commit
979f237b28
10 changed files with 26 additions and 59 deletions
|
@ -179,9 +179,10 @@ class ExperimentalConfig(Config):
|
|||
"msc3783_escape_event_match_key", False
|
||||
)
|
||||
|
||||
# MSC3952: Intentional mentions
|
||||
self.msc3952_intentional_mentions = experimental.get(
|
||||
"msc3952_intentional_mentions", False
|
||||
# MSC3952: Intentional mentions, this depends on MSC3758.
|
||||
self.msc3952_intentional_mentions = (
|
||||
experimental.get("msc3952_intentional_mentions", False)
|
||||
and self.msc3758_exact_event_match
|
||||
)
|
||||
|
||||
# MSC3959: Do not generate notifications for edits.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue