mirror of
https://github.com/element-hq/synapse
synced 2024-10-02 09:12:43 +00:00
WIP
This commit is contained in:
parent
bc42a73e99
commit
590624fc98
1 changed files with 5 additions and 2 deletions
|
@ -433,8 +433,11 @@ class FederationSenderHandler:
|
||||||
# The entities are either user IDs (starting with '@') whose devices
|
# The entities are either user IDs (starting with '@') whose devices
|
||||||
# have changed, or remote servers that we need to tell about
|
# have changed, or remote servers that we need to tell about
|
||||||
# changes.
|
# changes.
|
||||||
|
if any(row.hosts_calcualted for row in rows):
|
||||||
hosts = await self.store.get_destinations_for_device(token)
|
hosts = await self.store.get_destinations_for_device(token)
|
||||||
await self.federation_sender.send_device_messages(hosts, immediate=False)
|
await self.federation_sender.send_device_messages(
|
||||||
|
hosts, immediate=False
|
||||||
|
)
|
||||||
|
|
||||||
elif stream_name == ToDeviceStream.NAME:
|
elif stream_name == ToDeviceStream.NAME:
|
||||||
# The to_device stream includes stuff to be pushed to both local
|
# The to_device stream includes stuff to be pushed to both local
|
||||||
|
|
Loading…
Reference in a new issue