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

Commit

Permalink
Fix federated events being rejected for no state_groups
Browse files Browse the repository at this point in the history
Add fix from #10439
until it merges.
  • Loading branch information
MadLittleMods committed Jul 21, 2021
1 parent 258fa57 commit 9352635
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions synapse/handlers/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2711,9 +2711,11 @@ async def _update_auth_events_and_context_for_auth(
event.event_id,
e.event_id,
)
context = await self.state_handler.compute_event_context(e)
missing_auth_event_context = (
await self.state_handler.compute_event_context(e)
)
await self._auth_and_persist_event(
origin, e, context, auth_events=auth
origin, e, missing_auth_event_context, auth_events=auth
)

if e.event_id in event_auth_events:
Expand Down

0 comments on commit 9352635

Please sign in to comment.