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

Generate pills from display names #4240

Open
HarHarLinks opened this issue Oct 13, 2021 · 2 comments
Open

Generate pills from display names #4240

HarHarLinks opened this issue Oct 13, 2021 · 2 comments
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements

Comments

@HarHarLinks
Copy link
Contributor

Your use case

What would you like to do?

Pills are generated from valid <a href="matrix.to/...">label</a> markup with a matrix.to link that points to a user or room.
On web, the labels of these pills are generated by element to show the current displayname of the target entity.
Sending a custom html message and viewing on android, it seems that the provided label is used.

Please decide to adopt web's behaviour.

Why would you like to do it?

parity

How would you like to achieve it?

/

Have you considered any alternatives?

If not adopt, decide on another common behaviour. I'm not sure but maybe this should even be spec'd.

Additional context

related #1046 seems to be obsolete

@HarHarLinks HarHarLinks added the T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements label Oct 13, 2021
@HarHarLinks
Copy link
Contributor Author

Related: formatted_body containing a pill followed by a .like <a href=\"https://matrix.to/#/@me:server.tld\">@me:server.tld</a>. renders the period as a link even though it is clearly not in the anchor tag.

@HarHarLinks
Copy link
Contributor Author

It seems to mostly do that, but only with users that are in the room. If it linkifies them at all, then I think it should work for all pill-<a>?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements
Projects
None yet
Development

No branches or pull requests

1 participant