summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-05-05 16:53:22 +0100
committerGitHub <noreply@github.com>2021-05-05 16:53:22 +0100
commitde8f0a03a3cc3a2327dfd3058c99e48067965079 (patch)
tree8c0d98d49c4f7c97a2e12c66bc449ae71020dca2 /synapse/handlers/federation.py
parentUse get_current_users_in_room from store and not StateHandler (#9910) (diff)
downloadsynapse-de8f0a03a3cc3a2327dfd3058c99e48067965079.tar.xz
Don't set the external cache if its been done recently (#9905)
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r--synapse/handlers/federation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 9d867aaf4d..e8330a2b50 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -2446,7 +2446,9 @@ class FederationHandler(BaseHandler):
         # If we are going to send this event over federation we precaclculate
         # the joined hosts.
         if event.internal_metadata.get_send_on_behalf_of():
-            await self.event_creation_handler.cache_joined_hosts_for_event(event)
+            await self.event_creation_handler.cache_joined_hosts_for_event(
+                event, context
+            )
 
         return context