Skip to main content

create_room_route

Function create_room_route 

Source
pub(crate) async fn create_room_route(
    __arg0: State<State>,
    body: Args<Request>,
) -> Result<Response>
Expand description

ยงPOST /_matrix/client/v3/createRoom

Creates a new room.

  • Room ID is randomly generated
  • Create alias if room_alias_name is set
  • Send create event
  • Join sender user
  • Send power levels event
  • Send canonical room alias
  • Send join rules
  • Send history visibility
  • Send guest access
  • Send events listed in initial state
  • Send events implied by name and topic
  • Send invite events