summary refs log tree commit diff
path: root/synapse/handlers/federation_event.py
diff options
context:
space:
mode:
authorShay <hillerys@element.io>2022-10-12 11:01:00 -0700
committerGitHub <noreply@github.com>2022-10-12 11:01:00 -0700
commitb6baa46db078c3ef9e6c5751bccb8d2e1c5c5402 (patch)
treeea875cfe0e2023373822f81ed0ac6d681b25c3eb /synapse/handlers/federation_event.py
parentReturn the thread ID properly down sync. (#14159) (diff)
downloadsynapse-b6baa46db078c3ef9e6c5751bccb8d2e1c5c5402.tar.xz
Fix a bug where the joined hosts for a given event were not being properly cached (#14125)
Diffstat (limited to 'synapse/handlers/federation_event.py')
-rw-r--r--synapse/handlers/federation_event.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/federation_event.py b/synapse/handlers/federation_event.py
index da319943cc..f382961099 100644
--- a/synapse/handlers/federation_event.py
+++ b/synapse/handlers/federation_event.py
@@ -414,7 +414,9 @@ class FederationEventHandler:
 
         # First, precalculate the joined hosts so that the federation sender doesn't
         # need to.
-        await self._event_creation_handler.cache_joined_hosts_for_event(event, context)
+        await self._event_creation_handler.cache_joined_hosts_for_events(
+            [(event, context)]
+        )
 
         await self._check_for_soft_fail(event, context=context, origin=origin)
         await self._run_push_actions_and_persist_event(event, context)