Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Jul 12, 2022
1 parent 567af71 commit 7ab5f1a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions synapse/handlers/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,11 @@ async def create_room(
# override any attempt to set room versions via the creation_content
creation_content["room_version"] = room_version.identifier

last_stream_id, last_sent_event_id, depth = await self._send_events_for_new_room(
(
last_stream_id,
last_sent_event_id,
depth,
) = await self._send_events_for_new_room(
requester,
room_id,
preset_config=preset_config,
Expand Down Expand Up @@ -1016,14 +1020,15 @@ async def _send_events_for_new_room(
power_level_content_override: Optional[JsonDict] = None,
creator_join_profile: Optional[JsonDict] = None,
ratelimit: bool = True,
) -> int:
) -> 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.
Returns:
The stream_id of the last event persisted.
A tuple containing the stream ID, event ID and depth of the last
event sent to the room.
"""

creator_id = creator.user.to_string()
Expand Down

0 comments on commit 7ab5f1a

Please sign in to comment.