matrix-react-sdk
matrix-react-sdk copied to clipboard
Hide URL preview if it will be empty
Before:
After:
A question with this is whether it's reasonable to not render the preview (implying the server might be slow/failing to the user), or if we want to put in some placeholder values instead.
Tests for this are difficult because URL previews. Ideally we'd use an integration test for this, but testing localhost/reliability of the preview is questionable.
Here's what your changelog entry will look like:
✨ Features
- Hide URL preview if it will be empty (#9029).