From fd98493c8603611a4a1292f7717574603e91e23c Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Tue, 8 Nov 2022 12:19:42 -0800 Subject: remove duplicated code and update comment --- synapse/handlers/room.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'synapse/handlers/room.py') diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 7e6d6490aa..c35b40db0e 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -1147,12 +1147,6 @@ class RoomCreationHandler: # through a different code path depth += 1 state_map[(EventTypes.Member, creator.user.to_string())] = member_event_id - 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] # we need the state group of the membership event as it is the current state group event_to_state = ( -- cgit 1.5.1