diff options
author | David Baker <dave@matrix.org> | 2016-05-31 17:20:07 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-05-31 17:20:07 +0100 |
commit | d240796dedcfae1f6929c1501e7e335df417cfaf (patch) | |
tree | e7d6544a111fe4856b74a05d9e08d4b0af5524de /synapse/federation/transport/client.py | |
parent | Fix c+p fail (diff) | |
download | synapse-d240796dedcfae1f6929c1501e7e335df417cfaf.tar.xz |
Basic, un-cached support for secondary_directory_servers
Diffstat (limited to 'synapse/federation/transport/client.py')
-rw-r--r-- | synapse/federation/transport/client.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py index cd2841c4db..ebb698e278 100644 --- a/synapse/federation/transport/client.py +++ b/synapse/federation/transport/client.py @@ -226,6 +226,18 @@ class TransportLayerClient(object): @defer.inlineCallbacks @log_function + def get_public_rooms(self, remote_server): + path = PREFIX + "/publicRooms" + + response = yield self.client.get_json( + destination=remote_server, + path=path, + ) + + defer.returnValue(response) + + @defer.inlineCallbacks + @log_function def exchange_third_party_invite(self, destination, room_id, event_dict): path = PREFIX + "/exchange_third_party_invite/%s" % (room_id,) |