thunderbird / thunderbird/thunderbird-android
Thread preview unread state can be inconsistent with previewed message unread state.
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 14k
- Forks
- 2.8k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 57
Description
Describe the bug
If I have a thread of messages and I have one unread, but not the latest one. The message preview still shows the latest message (which is not the unread one). Like this:
Preview

Thread:

Expected behavior
The message preview of the thread shows the topmost message for all sort orders
If we also take the timestamp from that message this will affect the sort order of that thread in the list of threads. This is probably the most consistent thing to do here.
Environment (please complete the following information):
- K-9 Mail version: 5.800
- Android version: 8.1 LOS
- Device: Nexus 5X
- Account type: IMAP
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with an IMAP thread containing an unread message that is not the latest, using the screenshots and expected behavior in this issue as the reference. Trace the thread-list preview and timestamp handling, then verify that the preview shows the topmost message for each sort order and that the thread ordering remains consistent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100