summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-23 17:28:34 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-23 17:28:34 +0100
commite2b996ecf3a6ed5f567d995c3e08b95ec2f7a348 (patch)
treeee556a06ce1b8994de1396abe2278fd097ee85b3 /synapse/handlers/federation.py
parentMerge commit '918f6ed82' into anoa/dinsic_release_1_31_0 (diff)
parentConvert Requester to attrs (#9586) (diff)
downloadsynapse-e2b996ecf3a6ed5f567d995c3e08b95ec2f7a348.tar.xz
Merge commit 'a7a379006' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r--synapse/handlers/federation.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py

index 6cafb5c227..0f10cc3dc1 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py
@@ -1319,7 +1319,7 @@ class FederationHandler(BaseHandler): async def on_event_auth(self, event_id: str) -> List[EventBase]: event = await self.store.get_event(event_id) auth = await self.store.get_auth_chain( - list(event.auth_event_ids()), include_given=True + event.room_id, list(event.auth_event_ids()), include_given=True ) return list(auth) @@ -1653,7 +1653,7 @@ class FederationHandler(BaseHandler): prev_state_ids = await context.get_prev_state_ids() state_ids = list(prev_state_ids.values()) - auth_chain = await self.store.get_auth_chain(state_ids) + auth_chain = await self.store.get_auth_chain(event.room_id, state_ids) state = await self.store.get_events(list(prev_state_ids.values())) @@ -2413,7 +2413,7 @@ class FederationHandler(BaseHandler): # Now get the current auth_chain for the event. local_auth_chain = await self.store.get_auth_chain( - list(event.auth_event_ids()), include_given=True + room_id, list(event.auth_event_ids()), include_given=True ) # TODO: Check if we would now reject event_id. If so we need to tell