Skip to content

Fix image preview in replies and threads#366

Merged
ulyssa merged 3 commits intoulyssa:mainfrom
Andrew-Collins:reply_preview
May 15, 2025
Merged

Fix image preview in replies and threads#366
ulyssa merged 3 commits intoulyssa:mainfrom
Andrew-Collins:reply_preview

Conversation

@Andrew-Collins
Copy link
Copy Markdown
Contributor

Hi,

This PR is a fix for #362

The root cause was that the image protocol from a reply header was being ignored.

An image in a reply header is now handled in the same way as an image in the body of the message, with the image position offsets modified to account for the difference in formatting (vertical lines, indent, etc).

It was necessary to break out Message::show_msg from MessageFormatter::push_in_reply due to the lifetime of the image protocol.

Message::show_with_preview now returns the image protocols of both the body and the reply header. Scrollback::render was updated to handle this.

It was necessary to break out `Message::show_msg` from `MessageFormatter::push_in_reply`, due to the lifetime of the image protocol.
`Message::show_with_preview` now returns the image protocols of both the body and reply header.
`Scrollback::render` was updated to handle this.
@ulyssa ulyssa linked an issue May 15, 2025 that may be closed by this pull request
@ulyssa
Copy link
Copy Markdown
Owner

ulyssa commented May 15, 2025

Thank you for tracking this bug down! 🙏

@ulyssa ulyssa enabled auto-merge (squash) May 15, 2025 04:19
@ulyssa ulyssa added this to the v0.0.11 milestone May 15, 2025
@ulyssa ulyssa merged commit a9c1e69 into ulyssa:main May 15, 2025
3 checks passed
@ulyssa ulyssa mentioned this pull request Jan 20, 2026
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.

Image preview not working in threads

2 participants