Skip to content

The toolbar above an open message acts on that message - #417

Merged
jcoffey-dev merged 1 commit into
mainfrom
fix/toolbar-acts-on-the-open-message
Sep 20, 2026
Merged

jcoffey-dev merged 1 commit into
mainfrom
fix/toolbar-acts-on-the-open-message

Conversation

@jcoffey-dev

@jcoffey-dev jcoffey-dev commented Sep 20, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #414.

With conversation view off, marking a message unread from the list — the hover button, the right-click menu — marked that message. Opening it and pressing Mark as unread in the toolbar above it marked every message in its thread, and so did Move to, Report spam and Delete.

The setting already reaches all the way into the reading pane: the list draws one row per message, and visibleMessages narrows the pane to the one opened. The toolbar was half converted. Its labels were right — Mark as unread against Mark as read, the star, the labels shown — all of those read messages, which is the narrowed set. Only rowIds, the one thing actually handed to the action, still read thread.emailIds. So the button said one message and did the whole conversation.

rowIds is now the same question visibleMessages answers for the pane, asked of the same ids, with the same fallback: an id that names nothing in the thread — a link from somebody with conversation view on, a stale m in the URL — shows the conversation, so the toolbar takes the conversation. Conversation view on is unchanged: nothing is singled out, so the whole thread comes back as before.

Four tests render the toolbar and press the buttons: one open message for unread, and for move/spam/delete; the whole thread when none is singled out; and the stale-id fallback. The first two fail without the change.

No new strings.

With conversation view off, marking a message unread from the list --
the hover button, the right-click menu -- marked that message. Opening
it and pressing Mark as unread in the toolbar above it marked every
message in its thread, and so did Move to, Report spam and Delete.

The setting already reaches all the way into the reading pane: the list
draws one row per message, and `visibleMessages` narrows the pane to the
one opened. The toolbar was half converted. Its labels were right --
Mark as unread against Mark as read, the star, the labels shown -- all
of those read `messages`, which is the narrowed set. Only `rowIds`, the
one thing actually handed to the action, still read `thread.emailIds`.
So the button said one message and did the whole conversation.

`rowIds` is now the same question `visibleMessages` answers for the
pane, asked of the same ids, with the same fallback: an id that names
nothing in the thread -- a link from somebody with conversation view on,
a stale `m` in the URL -- shows the conversation, so the toolbar takes
the conversation. Conversation view on is unchanged: nothing is singled
out, so the whole thread comes back as before.

No new strings.
@jcoffey-dev
jcoffey-dev force-pushed the fix/toolbar-acts-on-the-open-message branch from fbe3072 to e0b6f84 Compare September 20, 2026 21:47
@jcoffey-dev
jcoffey-dev merged commit f627bfc into main Sep 20, 2026
1 check passed
@jcoffey-dev
jcoffey-dev deleted the fix/toolbar-acts-on-the-open-message branch September 20, 2026 21:53
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.

Bug? All e-mails linked by a conversation are marked as unread when pressing the 'mark as unread' button when the mail is opened.

1 participant