diff options
author | H. Shay <hillerys@element.io> | 2022-11-04 10:58:23 -0700 |
---|---|---|
committer | H. Shay <hillerys@element.io> | 2022-11-04 10:58:23 -0700 |
commit | 8b4875423e00242ab50f50a73a3e9cce95359df7 (patch) | |
tree | 4127f0efd6e460a09d83dc79a3cc7dc70281eb4f | |
parent | Merge branch 'develop' into shay/batch_state_groups (diff) | |
download | synapse-8b4875423e00242ab50f50a73a3e9cce95359df7.tar.xz |
fix bug
-rw-r--r-- | synapse/handlers/room.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 90b9dcf8a3..168012a9c6 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -1134,7 +1134,8 @@ class RoomCreationHandler: # through a different code path depth += 1 state_map[(EventTypes.Member, creator.user.to_string())] = member_event_id - current_state_group = await self._storage_controllers.state.get_state_group_for_events([member_event_id]).value + event_to_state_group = await self._storage_controllers.state.get_state_group_for_events([member_event_id]) + current_state_group = event_to_state_group[member_event_id] events_to_send = [] # We treat the power levels override specially as this needs to be one @@ -1142,7 +1143,7 @@ class RoomCreationHandler: pl_content = initial_state.pop((EventTypes.PowerLevels, ""), None) if pl_content is not None: power_event, power_context = await create_event( - EventTypes.PowerLevels, pl_content, False + EventTypes.PowerLevels, pl_content, True ) events_to_send.append((power_event, power_context)) else: @@ -1190,7 +1191,7 @@ class RoomCreationHandler: pl_event, pl_context = await create_event( EventTypes.PowerLevels, power_level_content, - False, + True, ) events_to_send.append((pl_event, pl_context)) |