diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-09-07 16:10:51 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-09-07 16:10:51 +0100 |
commit | 43954d000e19a622576063de0b48cf9235dec395 (patch) | |
tree | ea6ba106e6455aae45f41609714092b5d89b64f6 /synapse/handlers/devicemessage.py | |
parent | Fix the stream change cache to work over replication (diff) | |
download | synapse-43954d000e19a622576063de0b48cf9235dec395.tar.xz |
Add a new method to enqueue the device messages rather than sending a dummy EDU
Diffstat (limited to 'synapse/handlers/devicemessage.py')
-rw-r--r-- | synapse/handlers/devicemessage.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/synapse/handlers/devicemessage.py b/synapse/handlers/devicemessage.py index 7e59c0d487..c5368e5df2 100644 --- a/synapse/handlers/devicemessage.py +++ b/synapse/handlers/devicemessage.py @@ -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) |