diff options
author | Andrew Morgan <andrewm@element.io> | 2022-07-15 13:59:01 +0100 |
---|---|---|
committer | Andrew Morgan <andrewm@element.io> | 2022-08-15 17:43:00 +0100 |
commit | 5bfad0f87f696b864da326d44af1767932174235 (patch) | |
tree | 36caf3bfe3bfc32dce3a053b7301de60bb9478b2 | |
parent | Revert "Update locked versions of mypy and mypy-zope (#13521)" (diff) | |
download | synapse-5bfad0f87f696b864da326d44af1767932174235.tar.xz |
Document '_send_events_for_new_room' args
-rw-r--r-- | synapse/handlers/room.py | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 55395457c3..1bc91a45dc 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -1031,8 +1031,24 @@ class RoomCreationHandler: ) -> Tuple[int, str, int]: """Sends the initial events into a new room. - `power_level_content_override` doesn't apply when initial state has - power level state event content. + Args: + creator: The creator of the room. + room_id: The ID of the room to send events in. + invite_list: A list of Matrix user IDs to invite to the room. This is only + used by the method to set the power levels of the invitees to 100 if + the preset for the room specifies that initial invitees should have ops. + initial_state: A map of state key to an event definition or event ID. + creation_content: A json dict to use as the value of the "content" field + for the room's create event. + preset_config: The identifier of the room preset to use. This + determines the events that are sent into the room. + room_alias: A room alias to link to the room, if provided. + power_level_content_override: A json dictionary that specifies the initial + power levels of the room. If `initial_state` contains a 'm.room.power_levels' + event then this argument will be ignored. + creator_join_profile: The JSON dictionary value of the "content" field for the + 'm.room.membership' join event that will be sent for the creator of the room. + ratelimit: Whether to ratelimit the join event of the room creator. Returns: A tuple containing the stream ID, event ID and depth of the last |