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

Fix image preview in replies and threads #366

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Andrew-Collins
Copy link
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.
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.

1 participant