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

Correctly create power level event during initial room creation #14361

Merged
merged 8 commits into from
Nov 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#@$! lint
  • Loading branch information
H-Shay committed Nov 3, 2022
commit 2123135b872b7a8dcec660dd6446e89565a82d25
6 changes: 5 additions & 1 deletion synapse/handlers/room.py
Original file line number Diff line number Diff line change
@@ -1140,7 +1140,11 @@ async def create_event(
state_map[(EventTypes.Member, creator.user.to_string())] = member_event_id

# we need the state group of the membership event as it is the current state group
event_to_state = await self._storage_controllers.state.get_state_group_for_events([member_event_id])
event_to_state = (
await self._storage_controllers.state.get_state_group_for_events(
[member_event_id]
)
)
current_state_group = event_to_state[member_event_id]

events_to_send = []