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

Discard fallback body for HTML messages, and generate a spoiler-free plaintext representation to use locally in the UI #1666

Closed
wants to merge 1 commit into from

Conversation

xenofem
Copy link

@xenofem xenofem commented Apr 15, 2021

This fixes element-hq/element-web#12034 , I'm unclear on how to reproduce element-hq/element-web#14447 but I'm fairly sure this will fix that issue as well.

I've deliberately done the HTML-to-text conversion in a very fast-and-loose way, since the text version is only needed in a few limited contexts and doesn't need to do much more than give a general gist of the message content. If you'd rather retain a bit more formatting information, perhaps in a markdown-like syntax, I can adjust things.

@xenofem
Copy link
Author

xenofem commented Apr 15, 2021

Retracting this PR, the textForMessageEvent function in matrix-react-sdk is a better place to do this.

@xenofem xenofem closed this Apr 15, 2021
@xenofem xenofem deleted the replace-fallback-body branch April 15, 2021 23:57
@gabrc52
Copy link

gabrc52 commented Dec 29, 2022

Did you make a PR in matrix-react-sdk?

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.

Content inside spoiler blocks should be excluded from notifications
2 participants