mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 14:24:58 -04:00
Support the backwards compatibility features in MSC3952. (#14958)
If the feature is enabled and the event has a `m.mentions` property, skip processing of the legacy mentions rules.
This commit is contained in:
parent
0a686d1d13
commit
52700a0bcf
7 changed files with 190 additions and 65 deletions
|
@ -33,6 +33,7 @@ fn bench_match_exact(b: &mut Bencher) {
|
|||
|
||||
let eval = PushRuleEvaluator::py_new(
|
||||
flattened_keys,
|
||||
false,
|
||||
BTreeSet::new(),
|
||||
false,
|
||||
10,
|
||||
|
@ -71,6 +72,7 @@ fn bench_match_word(b: &mut Bencher) {
|
|||
|
||||
let eval = PushRuleEvaluator::py_new(
|
||||
flattened_keys,
|
||||
false,
|
||||
BTreeSet::new(),
|
||||
false,
|
||||
10,
|
||||
|
@ -109,6 +111,7 @@ fn bench_match_word_miss(b: &mut Bencher) {
|
|||
|
||||
let eval = PushRuleEvaluator::py_new(
|
||||
flattened_keys,
|
||||
false,
|
||||
BTreeSet::new(),
|
||||
false,
|
||||
10,
|
||||
|
@ -147,6 +150,7 @@ fn bench_eval_message(b: &mut Bencher) {
|
|||
|
||||
let eval = PushRuleEvaluator::py_new(
|
||||
flattened_keys,
|
||||
false,
|
||||
BTreeSet::new(),
|
||||
false,
|
||||
10,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue