App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-10-07] Notification badge showed 100 unread messages when user only had 1 unread chat

Open isagoico opened this issue 5 years ago • 78 comments

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.

  1. Open the New Expensify app in Desktop
  2. From another device and account sent a message to the account logged in desktop
  3. 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

image

Expensify/Expensify Issue URL:

View all open jobs on Upwork


From @alex-mechler https://expensify.slack.com/archives/C01GTK53T8Q/p1627488282388000

I have 1 unread message, but e.cash is telling me I have 100

isagoico avatar Jul 28 '21 16:07 isagoico

Triggered auto assignment to @madmax330 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Jul 28 '21 16:07 MelvinBot

Of note, when I read the 1 unread message I actually did have, it cleared all 100 unnreads.

alex-mechler avatar Jul 28 '21 16:07 alex-mechler

Triggered auto assignment to @Christinadobrzyn (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Jul 30 '21 21:07 MelvinBot

@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.

image

isagoico avatar Jul 31 '21 19:07 isagoico

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.

parasharrajat avatar Jul 31 '21 20:07 parasharrajat

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!

Christinadobrzyn avatar Aug 02 '21 02:08 Christinadobrzyn

Triggered auto assignment to @timszot (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Aug 02 '21 02:08 MelvinBot

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.

twisterdotcom avatar Aug 02 '21 10:08 twisterdotcom

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.

parasharrajat avatar Aug 02 '21 10:08 parasharrajat

@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

image

isagoico avatar Aug 02 '21 18:08 isagoico

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!

Christinadobrzyn avatar Aug 05 '21 00:08 Christinadobrzyn

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.

Christinadobrzyn avatar Aug 09 '21 01:08 Christinadobrzyn

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.

rafecolton avatar Aug 09 '21 04:08 rafecolton

@Christinadobrzyn I don't think fixing #4425 will resolve this. The negative count comes in one specific scenario.

mananjadhav avatar Aug 09 '21 04:08 mananjadhav

@quinthar is still experiencing the fake number of unread messages

Still getting fake unread messages in the header

image

isagoico avatar Aug 09 '21 14:08 isagoico

@Christinadobrzyn Since I woke up to phantom unread messages this morning, I say we bump it up!

timszot avatar Aug 09 '21 14:08 timszot

@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.

Santhosh-Sellavel avatar Aug 09 '21 18:08 Santhosh-Sellavel

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.

Christinadobrzyn avatar Aug 10 '21 00:08 Christinadobrzyn

@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!

timszot avatar Aug 11 '21 16:08 timszot

@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 Screenshot_20210812-012437_Expensifycash.jpg

@timszot

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

Santhosh-Sellavel avatar Aug 11 '21 19:08 Santhosh-Sellavel