Files
synapse/tests/push
Matthew HodgsonandClaude Fable 5 552e230410 Add a default push rule notifying users who can act on a knock (MSCxxxx draft)
Adds the recipient_permission push rule condition (unstable kind
org.matrix.mscxxxx.recipient_permission): matches iff the user the rules
are being evaluated for has a power level >= that required to perform
the power-levels action named by `key`. Uses it in a new default
override rule .org.matrix.mscxxxx.rule.knock (inserted before
.m.rule.member_event, which otherwise suppresses all member events) so
that members who can invite -- i.e. accept the knock (MSC2403) -- are
pushed when someone knocks. Also lifts the member-event fast-path in
the bulk evaluator for knocks, which otherwise evaluates rules for
nobody (a knock's sender == state_key).

Gated behind experimental_features.mscxxxx_knock_push_rule_enabled;
rule/condition ids and flag to be renamed once the MSC is numbered.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 19:38:02 +01:00
..