diff options
author | Erik Johnston <erikj@jki.re> | 2016-09-16 13:17:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-16 13:17:29 +0100 |
commit | 9e1283c8240068575dcf41d12b97fcd771e0c0e0 (patch) | |
tree | 3e85a6708c9dc9210237e7d027a2802e011a5bbf /synapse/federation/federation_client.py | |
parent | Merge pull request #1125 from matrix-org/erikj/public_room_cache (diff) | |
parent | Comment (diff) | |
download | synapse-9e1283c8240068575dcf41d12b97fcd771e0c0e0.tar.xz |
Merge pull request #1126 from matrix-org/erikj/public_room_cache
Add very basic filter API to /publicRooms
Diffstat (limited to 'synapse/federation/federation_client.py')
-rw-r--r-- | synapse/federation/federation_client.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index f0a684fc13..06d0320b1a 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -718,11 +718,14 @@ class FederationClient(FederationBase): raise RuntimeError("Failed to send to any server.") - def get_public_rooms(self, destination, limit=None, since_token=None): + def get_public_rooms(self, destination, limit=None, since_token=None, + search_filter=None): if destination == self.server_name: return - return self.transport_layer.get_public_rooms(destination, limit, since_token) + return self.transport_layer.get_public_rooms( + destination, limit, since_token, search_filter + ) @defer.inlineCallbacks def query_auth(self, destination, room_id, event_id, local_auth): |