Add a new method to enqueue the device messages rather than sending a dummy EDU

This commit is contained in:
Mark Haines 2016-09-07 16:10:51 +01:00
parent 2a0159b8ae
commit 43954d000e
3 changed files with 20 additions and 7 deletions

View file

@ -112,10 +112,6 @@ class DeviceMessageHandler(object):
)
for destination in remote_messages.keys():
# Hack to send make synapse send a federation transaction
# to the remote servers.
self.federation.send_edu(
destination=destination,
edu_type="m.ping",
content={},
)
# Enqueue a new federation transaction to send the new
# device messages to each remote destination.
self.federation.send_device_messages(destination)