mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 10:15:05 -04:00
Don't set the external cache if its been done recently (#9905)
This commit is contained in:
parent
d0aee697ac
commit
de8f0a03a3
3 changed files with 34 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue