[HOLD for payment 2021-10-07] Notification badge showed 100 unread messages when user only had 1 unread chat
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
There are no solid reproduction steps yet will investigate further and update.
- Open the New Expensify app in Desktop
- From another device and account sent a message to the account logged in desktop
- Check the notification badge.
Expected Result:
Notification badge should display the correct amount of unread messages.
Actual Result:
Notification badge is showing incorrect amount of unread messages.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platform:
Where is this issue occurring?
- [ ] Web
- [ ] iOS
- [ ] Android
- [x] Desktop App
- [ ] Mobile Web
Version Number: 1.0.80-2
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
From @alex-mechler https://expensify.slack.com/archives/C01GTK53T8Q/p1627488282388000
I have 1 unread message, but e.cash is telling me I have 100
Triggered auto assignment to @madmax330 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Of note, when I read the 1 unread message I actually did have, it cleared all 100 unnreads.
Triggered auto assignment to @Christinadobrzyn (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
@rafecolton Was able to reproduce this. Here's the new intel on the issue:
I seem to be stuck on 36 notifications on both desktop and mobile. Ok, so this is even weirder. I think this was due to chronos - when I scrolled down, I saw it marked unread, so I clicked in and the badge went away. However, I never got any notifications for it, and there aren't even 36 messages in the chat.

I faced one more instance of it. On Web. I have 126 notifications on the title but I never got that many messages. There is something really bad going on but I may know what. I'll try to debug this by the far end of the next week.
Posted in Upwork:
Internal job: https://www.upwork.com/ab/applicants/1422014297908846592/job-details External job: https://www.upwork.com/jobs/~0100d479f219f067dd
Invited @parasharrajat to it!
Triggered auto assignment to @timszot (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
I had this too. I navigated to my Chronos DM and it cleared but I've no idea why. Also @parasharrajat won't even have that DM, so it can't be specific to it.
If you have any single unread message and you go to that chat. All unread message count is reset to the updated one. So navigating to any unread chat should clear the count.
@laurenreidexpensify Was able to reproduce this issue. Thread here https://expensify.slack.com/archives/C01GTK53T8Q/p1627890930045000
She had 1390 "unread messages". When opening chat with Chronos the number went down, messages from thread:
ah interesting - nah chronos just takes it down to 1378 BUT it does make sense that the old chronos to new chronos migration might be the culprit here and that my old chronos messages are the other 1378

It looks like we're still waiting to hire a contributor for this. @parasharrajat would you like to 'officially' take this job or would you prefer I leave it open for other contributors to take a peek? Not sure how full your plate is right now but I know you've been working on lots!
Hey, @timszot, this job has been open for over a week without a taker.
Should I raise the price to $500, or should we put this on pause and see if a fix for this issue resolves it.
I think we should still pursue this, as I'm pretty sure it's related to Chronos. I'm seeing pretty consistently when I have one message from Chronos the badge shows two unread messages, and when I stay in the Chronos chat for a few seconds, the badge goes away. cc @deetergp in case the relation to Chronos means this needs to be solved internally.
@Christinadobrzyn I don't think fixing #4425 will resolve this. The negative count comes in one specific scenario.
@quinthar is still experiencing the fake number of unread messages
Still getting fake unread messages in the header

@Christinadobrzyn Since I woke up to phantom unread messages this morning, I say we bump it up!
@Christinadobrzyn I am unable to reproduce this with my account. I don't have chronos enabled.
The issue was reproducible in the account with Chronos as said here, which is available only for an internal account said here.
Can I get an internal test account if possible with Chronos, So I can check to provide a proposal to fix this.
Sounds good! Increased the job price to $500.
@timszot would you be able to help @Santhosh-Sellavel with a test account for this project? I'm not sure how that works.
@Santhosh-Sellavel I've added your [email protected] email address to the beta for Chronos. Feel free to let me know if you have any questions!
@Santhosh-Sellavel I've added your
[email protected]email address to the beta for Chronos. Feel free to let me know if you have
How to access Chronos, I see only Concierge in home screen

@timszot
By the way, I just now created account using this mail id [email protected]. Earlier I was using only +test accounts