Files
synapse/changelog.d/20132.bugfix
T
Tulir Asokan 6460a96d6f Return unable to authorise join if there are unrecognized restricted join rules (#20132)
Rooms may use custom restricted join `allow` rules for things like
pre-validating joins before they're allowed into the room graph.
However, currently any Synapse with invite permissions that doesn't know
about the custom rule will throw a 403, which cancels the entire join
process. By returning `M_UNABLE_TO_AUTHORISE_JOIN` instead, the origin
server can keep trying other servers to join through.

For reference, continuwuity already implements this correctly:
https://forgejo.ellis.link/continuwuation/continuwuity/src/commit/5ceed2c2bb4ad80160cd1b7365afd8fe388261eb/src/api/server/make_join.rs#L255-L256
2026-08-28 16:20:32 +01:00

2 lines
189 B
Plaintext

Fixed joining rooms with unrecognized restricted join rules being rejected outright instead of returning the proper `M_UNABLE_TO_AUTHORISE_JOIN` error code. Contributed by @tulir @ Beeper.