mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-07 09:12:12 -04:00
Support filtering remote room lists
This commit is contained in:
parent
e58a9d781c
commit
23b6701a28
3 changed files with 18 additions and 6 deletions
|
@ -248,7 +248,8 @@ class TransportLayerClient(object):
|
|||
|
||||
@defer.inlineCallbacks
|
||||
@log_function
|
||||
def get_public_rooms(self, remote_server, limit, since_token):
|
||||
def get_public_rooms(self, remote_server, limit, since_token,
|
||||
search_filter=None):
|
||||
path = PREFIX + "/publicRooms"
|
||||
|
||||
args = {}
|
||||
|
@ -257,6 +258,8 @@ class TransportLayerClient(object):
|
|||
if since_token:
|
||||
args["since"] = [since_token]
|
||||
|
||||
# TODO(erikj): Actually send the search_filter across federation.
|
||||
|
||||
response = yield self.client.get_json(
|
||||
destination=remote_server,
|
||||
path=path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue