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
Fix collapsible markdown images #26905
base: master
Are you sure you want to change the base?
Conversation
@tdwio do we have a ticket for this? |
E2E tests not automatically triggered, because the PR is not in a mergeable state. Please update the branch with the base branch and resolve outstanding conflicts. |
ec4e339
to
b9df2aa
Compare
I have not found any related issue. However, the original feature came from this pull-request : mattermost/mattermost-webapp#7352, so I assumed this is a bug |
Great find! I'm surprised that the tests for this didn't catch the issue, but perhaps there's a case we missed here. Playing around with this myself without your changes, I've noticed that the image isn't collapsible right when it's posted, but becomes collapsible after I refresh. Do you see the same thing? It seems like there's an underlying bug here where |
I see the same thing. Also, if you edit a post and add a markdown image it will be collapsible
I will look into that |
b9df2aa
to
d2d2820
Compare
I have found that I have removed my original edits and pushed modifications to |
d2d2820
to
60a6826
Compare
Great find. I'll try to take a look at this tomorrow since I want to see if I can find why the metadata still seems to be different on first post vs afterwards, but making sure that the clientside code can handle that sounds like a good fix. We've had issues with proxied URLs not being consistently returned by the server before, so it'll be nice to know that the web app can handle that too |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
Summary
Fix collapsing markdown images
Ticket Link
N/A
Screenshots
Screen.Recording.2024-04-29.at.09.55.43.mov
Screen.Recording.2024-04-29.at.09.55.53.mov
Release Note