Skip to content

Commit c3e39e1

Browse files
authored
Merge pull request #3337 from uhoreg/room_create_canonical_alias
room creation: create canonical alias event if alias specified
2 parents 8a42807 + d0a6c5b commit c3e39e1

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Mention that a canonical alias event should be added when a room is created with an alias.

data/api/client-server/create_room.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,18 @@ paths:
4848
(and not other members) permission to send state events. Overridden
4949
by the `power_level_content_override` parameter.
5050
51-
4. Events set by the `preset`. Currently these are the `m.room.join_rules`,
51+
4. An `m.room.canonical_alias` event if `room_alias_name` is given.
52+
53+
5. Events set by the `preset`. Currently these are the `m.room.join_rules`,
5254
`m.room.history_visibility`, and `m.room.guest_access` state events.
5355
54-
5. Events listed in `initial_state`, in the order that they are
56+
6. Events listed in `initial_state`, in the order that they are
5557
listed.
5658
57-
6. Events implied by `name` and `topic` (`m.room.name` and `m.room.topic`
59+
7. Events implied by `name` and `topic` (`m.room.name` and `m.room.topic`
5860
state events).
5961
60-
7. Invite events implied by `invite` and `invite_3pid` (`m.room.member` with
62+
8. Invite events implied by `invite` and `invite_3pid` (`m.room.member` with
6163
`membership: invite` and `m.room.third_party_invite`).
6264
6365
The available presets do the following with respect to room state:
@@ -112,7 +114,8 @@ paths:
112114
would be `#foo:example.com`.
113115
114116
The complete room alias will become the canonical alias for
115-
the room.
117+
the room and an `m.room.canonical_alias` event will be sent
118+
into the room.
116119
name:
117120
type: string
118121
description: |-

0 commit comments

Comments
 (0)