summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-09-07 16:10:51 +0100
committerMark Haines <mark.haines@matrix.org>2016-09-07 16:10:51 +0100
commit43954d000e19a622576063de0b48cf9235dec395 (patch)
treeea6ba106e6455aae45f41609714092b5d89b64f6 /synapse/handlers
parentFix the stream change cache to work over replication (diff)
downloadsynapse-43954d000e19a622576063de0b48cf9235dec395.tar.xz
Add a new method to enqueue the device messages rather than sending a dummy EDU
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/devicemessage.py10
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)