You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Chat - Incorrect number of new messages are shown in green marker badge count #4863
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Definitely related to #4773. Specifically, this is the offending line. When the LHN is opened, the unread count follows the 1+2+3...+n formula for the badge it shows. When I send 2 messages, the unread is 3, and 3 messages leads to an unread count of 6. When the report is opened, the unread count is correct.
Good catch @alex-mechler. I guess I forgot to check for the case where LHN is opened. In this case, we should save the unread message count instead of adding it to the old count.
Activity
OSBotify commentedon Aug 26, 2021
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
StagingDeployCashdeploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:MelvinBot commentedon Aug 26, 2021
Triggered auto assignment to @alex-mechler (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.alex-mechler commentedon Aug 26, 2021
I was able to reproduce on staging only, will look into what might be causing this 👀
alex-mechler commentedon Aug 26, 2021
Definitely related to #4773. Specifically, this is the offending line. When the LHN is opened, the unread count follows the
1+2+3...+nformula for the badge it shows. When I send 2 messages, the unread is 3, and 3 messages leads to an unread count of 6. When the report is opened, the unread count is correct.cc @parasharrajat
parasharrajat commentedon Aug 26, 2021
Good catch @alex-mechler. I guess I forgot to check for the case where LHN is opened. In this case, we should save the unread message count instead of adding it to the old count.
Sending the PR shortly.
alex-mechler commentedon Aug 26, 2021
Awesome, thanks! Will assign you to this then!
roryabraham commentedon Aug 27, 2021
Sorry for missing this in my PR review! Thanks for figuring this out @alex-mechler
isagoico commentedon Aug 27, 2021
Retested this on Android and it was a pass 🎉 Removing the deploy blocker label.
parasharrajat commentedon Aug 28, 2021
I can't close this issue but cc: @roryabraham
isagoico commentedon Aug 30, 2021
Issue not reproducible during KI retests (FIxed)
botify commentedon Aug 30, 2021
🚀 Deployed to staging by @roryabraham in version: 1.0.88-3 🚀
botify commentedon Aug 30, 2021
🚀 Deployed to production by @roryabraham in version: 1.0.88-2 🚀
botify commentedon Sep 1, 2021
🚀 Deployed to production by @roryabraham in version: 1.0.90-2 🚀