Files
synapse/schema
Matthew HodgsonandClaude Fable 5 e53dfc0954 Make accepted-knock auto-join opt-in, and fix on_new_event on rejected events
Instantiating the InviteAutoAccepter by default registered a third-party-
rules on_new_event callback on every homeserver, which (a) added a state
fetch per new event, perturbing db txn counts and sliding-sync test
expectations, and (b) exposed a latent bug: the callback dispatcher
fetched events without allow_rejected=True, so a rejected federation
event raised NotFoundError out of the notifier and broke event
persistence. Make enabled_for_accepted_knocks default off (matching
auto_accept_invites.enabled) and fix the dispatcher to skip rejected
events, with a regression test.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uk8aPxHn3BHCe52L226jdG
2026-07-14 17:41:29 +01:00
..