diff options
author | Erik Johnston <erik@matrix.org> | 2019-01-15 13:22:44 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-01-15 13:22:44 +0000 |
commit | 4a4d2e17bc28562cc6d0de55bc8c8c05335414cd (patch) | |
tree | 1402aad4af8a3b2232817b240c03aa0a8883c626 /synapse/federation/federation_server.py | |
parent | Newsfile (diff) | |
download | synapse-4a4d2e17bc28562cc6d0de55bc8c8c05335414cd.tar.xz |
Add /v2/invite federation API
Diffstat (limited to 'synapse/federation/federation_server.py')
-rw-r--r-- | synapse/federation/federation_server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py index 98722ae543..37d29e7027 100644 --- a/synapse/federation/federation_server.py +++ b/synapse/federation/federation_server.py @@ -369,13 +369,13 @@ class FederationServer(FederationBase): }) @defer.inlineCallbacks - def on_invite_request(self, origin, content): + def on_invite_request(self, origin, content, room_version): pdu = event_from_pdu_json(content) origin_host, _ = parse_server_name(origin) yield self.check_server_matches_acl(origin_host, pdu.room_id) ret_pdu = yield self.handler.on_invite_request(origin, pdu) time_now = self._clock.time_msec() - defer.returnValue((200, {"event": ret_pdu.get_pdu_json(time_now)})) + defer.returnValue({"event": ret_pdu.get_pdu_json(time_now)}) @defer.inlineCallbacks def on_send_join_request(self, origin, content): |