summary refs log tree commit diff
path: root/synapse/federation/federation_client.py
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/federation/federation_client.py
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/federation/federation_client.py')
-rw-r--r--synapse/federation/federation_client.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py
index 627acc6a4f..78719eed25 100644
--- a/synapse/federation/federation_client.py
+++ b/synapse/federation/federation_client.py
@@ -138,6 +138,12 @@ class FederationClient(FederationBase):
         return defer.succeed(None)
 
     @log_function
+    def send_device_messages(self, destination):
+        """Sends the device messages in the local database to the remote
+        destination"""
+        self._transaction_queue.enqueue_device_messages(destination)
+
+    @log_function
     def send_failure(self, failure, destination):
         self._transaction_queue.enqueue_failure(failure, destination)
         return defer.succeed(None)