Skip to content

Fix: wasn't selecting the right message when copying/opening url - #447

Merged
boxdot merged 3 commits into
boxdot:mainfrom
elmehalawi:fix-url-file-date-separators
Dec 15, 2025
Merged

Fix: wasn't selecting the right message when copying/opening url#447
boxdot merged 3 commits into
boxdot:mainfrom
elmehalawi:fix-url-file-date-separators

Conversation

@elmehalawi

@elmehalawi elmehalawi commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

When selecting messages and opening or copying, the message that was opened/copied was wrong. There were two separate problems causing this:

  • try_open_url() and try_open_file() were not using selected_message(), which was causing the behavior to not match with copying. One of the commits changes those functions to use selected_message().

  • selected_message_id() was iterating over pairs of messages and was sometimes off by one, so there is also a commit that fixes that. Now we iterate over a mix of messages and date headers instead of pairs of messages.

Let me know if I missed something or something needs updated!

@boxdot boxdot left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this!

@boxdot
boxdot enabled auto-merge (squash) December 15, 2025 18:52
@boxdot
boxdot merged commit ad85a40 into boxdot:main Dec 15, 2025
9 checks passed
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.

2 participants