We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dc4e5c commit 643558dCopy full SHA for 643558d
src/pushprocessor.ts
@@ -712,6 +712,16 @@ export class PushProcessor {
712
}
713
714
public ruleMatchesEvent(rule: Partial<IPushRule> & Pick<IPushRule, "conditions">, ev: MatrixEvent): boolean {
715
+ // Disable the deprecated mentions push rules if the new mentions property exists.
716
+ if (
717
+ ev.getContent()["org.matrix.msc3952.mentions"] !== undefined &&
718
+ (rule.rule_id === RuleId.ContainsUserName ||
719
+ rule.rule_id === RuleId.ContainsDisplayName ||
720
+ rule.rule_id === RuleId.AtRoomNotification)
721
+ ) {
722
+ return false;
723
+ }
724
+
725
return !rule.conditions?.some((cond) => !this.eventFulfillsCondition(cond, ev));
726
727
0 commit comments