Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Decentralize Matrix discovery room #2307
The matrix discovery room isn't used to actually find peers, but instead to trigger any server whose any user joined it to keep track of every other member of this room. This makes the servers know about all the matrix users in the network, allowing its users to listen for events from these users (e.g. presence changes) and also to use the search user directory feature to search for users matching a given ETH address.
Today, this room isn't listened on, but it's "hardcoded" in the config to be on the
The users should join a "discovery room" on each available server, so the server can keep track of it for its users.
In a call with Matthew from Matrix he explained that the solution is even easier:
We don't need to create multiple per-server discovery rooms but instead we simply need to assign a per-server alias to the existing room. That way the room is joinable from all servers but is actually just one room.