Skip to content

Unread mail counter badge inconsistent #9258

@das-tuta

Description

@das-tuta
  • This is not a feature request (existing functionality does not work, not missing functionality).
    I will request features on forum or via support.
  • I've searched and did not find a similar issue.

Describe the bug

When having more than 100 unread items in a folder, sometimes the counter is reset to a 100

To Reproduce
Steps to reproduce the behavior:

  1. Have a Folder with over 100 emails
  2. Click Select all
  3. Click the Load all
  4. Mark as unread in case it's not already
  5. There It will display the correct number of items as unread.
  6. Click on another folder.
  7. Click on the folder with over 100 unread emails,
  8. It will update the counter back to 100 emails.

On the Network there's this request for counter service(/rest/monitor/counterservice) that seems to be coming from
async fixupCounterForFolder(groupId: Id, folder: MailFolder, unreadMails: number): Promise<void> {
in MailFacade,

  1. Expected behavior Unread mail counter should accurately display number of unread emails in a folder

Screenshots

Folder With 248 unread emails and 250 emails:

Image

Request showing actual number of unread emails:
Image

Request sent after clicking away from folder and back:
Image

Desktop:

  • OS: Debian
  • Desktop Environment, if applicable (on Linux)
  • Version [v296.250707.0] (Latest master)

Additional context
Add any other context about the problem here.

Test notes

Wait = wait 2-7 seconds

  • Issue doesn't reproduce.
  • Counter fixup happens after switching list only once and after the mail list is fully loaded.
    • Navigate to folder with more than a 100 mails, don't scroll so no more mails are loaded.
    • Wait.
    • See no mention of counter fixup in the logs (fixing up counter for folder $FOLDER_ID or same counter, no fixup on folder $FOLDER_ID).
    • Load the full list, either by scrolling to the end, or by selecting all then clicking Load All.
    • Wait.
    • See counter fixup log (fixing up counter for folder $FOLDER_ID or same counter, no fixup on folder $FOLDER_ID).
    • Without navigating to a different folder, change the state of the list, by changing the unread state of a mail for example.
    • Wait.
    • See no additional counter fixup log (fixing up counter for folder $FOLDER_ID or same counter, no fixup on folder $FOLDER_ID).
    • Switch to a different folder with less than 100 mails.
    • Wait.
    • See counter fixup log.
    • Navigate back to the folder with more that a 100 mails and repeat the same steps before switching to the folder with less than 100 mails.
  • Counter fixup only happens when list filter is set to Unread or All emails.
    • Switch to a folder with more than 100 mails.
    • Set filter to Unread.
    • Load full list.
    • Wait.
    • See counter fixup log.
    • If conversation list grouping is off, check that the list count matches the counter.
    • Switch to a different folder then back.
    • Set the filter to something other that Unread or All emails.
    • Wait.
    • Observe no counter fixup log.
  • Counter fixup doesn't happen for labels.
    • Switch to a label.
    • Load full list.
    • Wait.
    • See no counter fixup log.
  • Counter fixup works when conversation list grouping on but also off.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbroken functionality, usability problems, unexpected errorsdesktopDesktop client related issuesstate:testedWe tested it and are about to release ituivisual glitches, missing buttons, wrong text...

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions