Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize room alias fetching #5892

Merged

Conversation

ulope
Copy link
Collaborator

@ulope ulope commented Feb 13, 2020

Description

When joining a room we populate the aliases. This used to be done by downloading the entire rooms state only to then immediately discard any non-alias event.
This PR changes the behaviour so that only alias events are fetched form the server.

Unfortunately due to a limitation in the Matrix API it's not possible to query for all aliases of a room, only aliases for a given specific server can be fetched, see: matrix-org/synapse#6908

However, since in Raiden we always have server local aliases set for all broadcast rooms, this is sufficient.

Don't download entire room state to get room aliases.
This is especially important for the broadcast rooms which can have many
thousand members.
@hackaugusto hackaugusto merged commit 4cad3bc into raiden-network:develop Feb 21, 2020
@fredo fredo mentioned this pull request Feb 24, 2020
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants