feat: Improve inbound federated membership handling #1952

Merged
ginger merged 16 commits from nex/fix/incoming-federated-invites into main 2026-07-12 02:11:51 +00:00

2026-07-11

style: Make send_join's docstring more useful
All checks were successful
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 6s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m4s
Checks / Prek / Check changed files (pull_request) Successful in 4s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m15s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 9m5s
2026-07-11 21:13:15 +01:00
fix: Remove redundant banned room server checks
These don't make sense here anyway
2026-07-11 21:13:15 +01:00
fix: Only run ACL checks when we know we have live state
Prevents a potential bug where we might inadvertently reject valid invites because we have a stale state cache that blocks the sender or even ourselves

Also fixes the banned remote server room check by using the create event instead of room ID
2026-07-11 21:13:15 +01:00
feat: Enforce new federation invite checks
These were introduced in spec v1.16 however we didn't implement them until now for compatibility.
2026-07-11 21:13:14 +01:00