make FederationHandler.send_invite async

This commit is contained in:
Richard van der Hoff 2020-02-03 22:28:11 +00:00
parent e81c093974
commit 5d17c31596
2 changed files with 4 additions and 6 deletions

View file

@ -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.