matrix-org / synapse

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

roomDirectory advertissing to client? #16687

Closed Thatoo closed 10 months ago

Thatoo commented 10 months ago

Would it be possible to advertise a roomdirectory server to our clients app? Of course, I have in mind to advertise the "matrixroom.info" server. Could it be set in homeserver.yaml file or in /.well-known/matrix/client.json file?

DMRobertson commented 10 months ago

AFAIK this is a feature built-in to Element Web. Per https://github.com/vector-im/element-web/blob/develop/docs/config.md#default-settings it looks like you can set the room_directory config option to include matrixroom.info. If you're hosting your own copy of Element web you should be able to set this in its config.json.

Having said that, I'm slightly surprised that element-web needs this to be advertised or set; I'd've thought it would automatically show you your homeserver's public room directory.

We're not planning to make any changes in Synapse here. For any other questions, please ask the Element-web team, either at vector-im/element-web or https://matrix.to/#/#element-web:matrix.org.