Repository navigation
Show the recipient on sent rows and replied conversations - #295
Merged
Merged
Conversation
The list showed the person's own name on every sent row. The store now fills the recipient for rows whose newest message the account sent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The message list now shows who a message went to when you sent it, instead of your own name.
How it works: the store fills
ThreadSummary.recipient(the field Follow Up and Outbox rows already use) when a row's newest message is one the account sent. A message counts as sent when it sits in a Sent mailbox, which covers send-as aliases, or when its sender is the account address. The "To {recipients}" text is the string Outbox rows already use, so it is translated in every language.Rows listed from the server (browsing a Sent folder, search, smart mailboxes) take the same rule from each hit's own Sent role.
Cost: the thread list query gains one correlated subquery per row, through the
messages_by_threadindex like the three it already has for the preview, protection and security. Message rows gain oneEXISTSon the message's primary key. The recipients JSON is read only for rows that qualify. The query plan tests still pass.Not covered: a conversation whose newest message is yours but has no recipient (a Bcc-only send) keeps your name.
Fixes #276
Fixes #277