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