forked from MirrorHub/synapse
Fix possible variable shadow in create_new_client_event
(#14575)
This commit is contained in:
parent
9ccc09fe9e
commit
72f3e38137
2 changed files with 5 additions and 2 deletions
1
changelog.d/14575.misc
Normal file
1
changelog.d/14575.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Fix a possible variable shadow in `create_new_client_event`.
|
|
@ -1135,11 +1135,13 @@ class EventCreationHandler:
|
|||
)
|
||||
state_events = await self.store.get_events_as_list(state_event_ids)
|
||||
# Create a StateMap[str]
|
||||
state_map = {(e.type, e.state_key): e.event_id for e in state_events}
|
||||
current_state_ids = {
|
||||
(e.type, e.state_key): e.event_id for e in state_events
|
||||
}
|
||||
# Actually strip down and only use the necessary auth events
|
||||
auth_event_ids = self._event_auth_handler.compute_auth_events(
|
||||
event=temp_event,
|
||||
current_state_ids=state_map,
|
||||
current_state_ids=current_state_ids,
|
||||
for_verification=False,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue