This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Use alt_aliases for pills and autocomplete #4102
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requires matrix-org/matrix-js-sdk#1225
Fixes element-hq/element-web#12364
As explained in MSC2432,
m.room.aliases
are being retired. Moderators can setalt_aliases
on the canonical alias event to support more than 1 moderated alias (note that there is no UI for this yet). Clients can query the local aliases of a HS through a new /aliases endpoint but should really not show these by default as they are an abuse vector.So, this PR:
alt_aliases
in addition to the canonical alias to autocompleteIdeally, we'd also add exact matches for local aliases to the autocomplete, so you would be able to send pills for non-moderated aliases from riot, but that proved a bit harder, so let's defer that until it's obvious we need it.