mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-24 14:00:32 -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
|
@ -227,7 +227,14 @@ class TestBulkPushRuleEvaluator(HomeserverTestCase):
|
|||
)
|
||||
return len(result) > 0
|
||||
|
||||
@override_config({"experimental_features": {"msc3952_intentional_mentions": True}})
|
||||
@override_config(
|
||||
{
|
||||
"experimental_features": {
|
||||
"msc3758_exact_event_match": True,
|
||||
"msc3952_intentional_mentions": True,
|
||||
}
|
||||
}
|
||||
)
|
||||
def test_user_mentions(self) -> None:
|
||||
"""Test the behavior of an event which includes invalid user mentions."""
|
||||
bulk_evaluator = BulkPushRuleEvaluator(self.hs)
|
||||
|
@ -323,7 +330,14 @@ class TestBulkPushRuleEvaluator(HomeserverTestCase):
|
|||
)
|
||||
)
|
||||
|
||||
@override_config({"experimental_features": {"msc3952_intentional_mentions": True}})
|
||||
@override_config(
|
||||
{
|
||||
"experimental_features": {
|
||||
"msc3758_exact_event_match": True,
|
||||
"msc3952_intentional_mentions": True,
|
||||
}
|
||||
}
|
||||
)
|
||||
def test_room_mentions(self) -> None:
|
||||
"""Test the behavior of an event which includes invalid room mentions."""
|
||||
bulk_evaluator = BulkPushRuleEvaluator(self.hs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue