summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-02-03 22:28:11 +0000
committerRichard van der Hoff <richard@matrix.org>2020-02-03 22:28:11 +0000
commit5d17c3159618b6e75bb58ba68a77a73572a85688 (patch)
treeb04d313626c07b1cd964df7a0ecb6b61c734c775 /synapse/handlers/message.py
parentmake FederationHandler.on_get_missing_events async (diff)
downloadsynapse-5d17c3159618b6e75bb58ba68a77a73572a85688.tar.xz
make FederationHandler.send_invite async
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r--synapse/handlers/message.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index bdf16c84d3..be6ae18a92 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -932,10 +932,9 @@ class EventCreationHandler(object):
                     # way? If we have been invited by a remote server, we need
                     # to get them to sign the event.
 
-                    returned_invite = yield federation_handler.send_invite(
-                        invitee.domain, event
+                    returned_invite = yield defer.ensureDeferred(
+                        federation_handler.send_invite(invitee.domain, event)
                     )
-
                     event.unsigned.pop("room_state", None)
 
                     # TODO: Make sure the signatures actually are correct.