Skip to content

Commit

Permalink
use update
Browse files Browse the repository at this point in the history
  • Loading branch information
ggogel committed Mar 8, 2024
1 parent 9d6cf73 commit 22df933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/event_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,8 @@ async def check_state_independent_auth_rules(
return

# 2. Reject if event has auth_events that: ...
auth_events: MutableMapping[str, "EventBase"]
auth_events: MutableMapping[str, "EventBase"] = {}
if batched_auth_events:
auth_events = batched_auth_events
needed_auth_event_ids = [
event_id
for event_id in event.auth_event_ids()
Expand All @@ -201,6 +200,7 @@ async def check_state_independent_auth_rules(
allow_rejected=True,
)
auth_events.update(needed_auth_events)
auth_events.update(batched_auth_events)
else:
auth_events = await store.get_events(
event.auth_event_ids(),
Expand Down

0 comments on commit 22df933

Please sign in to comment.