matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

Search multiple public room directories #16245

Open Thatoo opened 1 year ago

Thatoo commented 1 year ago

Would it be possible to list in homeserver.yaml file a list of servers that could serve for users to make a global search when they are looking for new rooms?

clokep commented 1 year ago

I'm assuming you're asking about the public room directory, please correct me if I'm wrong.

The client provides the server for which to search (defaulting to the local server). It currently isn't possible to search multiple servers at once.

Thatoo commented 1 year ago

Yes, you're correct and yes the request is to be able to search multiple servers at once : a list of server written in the client .well-known and those added by the user.

clokep commented 1 year ago

I see this as two pieces:

  1. By default, instead of performing only a local room directory search, include additional administrator configured servers. It isn't clear to me that the spec allows for this, but it doesn't seem too off base either.
  2. Allow clients to provide multiple servers to the room directory search API. This would require a spec change.