Files
synapse/tests
Erik JohnstonandClaude Opus 5.5 a486744648 Persist the join first when the initial state has m.room.aliases
With `require_membership_for_aliases` (the default), `create_event`
checks that the sender of an `m.room.aliases` event has joined, by
loading their membership event from the database. Since the initial
events of a room are persisted in one batch, the creator's join is not
there yet, so a `/createRoom` with `m.room.aliases` in its initial
state failed with 403 "You must be in the room to create an alias for
it".

Persist the create event and the join on their own first in that case,
as for v1 rooms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVLsNh6akt4ifEizY4D1ta
2026-10-18 17:24:19 +00:00
..
2026-09-18 12:00:45 +01:00
2026-10-14 13:35:25 +00:00