mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-14 11:30:49 +00:00
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