Skip to content

Chat - Incorrect number of new messages are shown in green marker badge count #4863

Closed

Description

@kavimuru

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Issue found when executing PR #4773

Action Performed:

  1. Lunch the app
  2. Log in with account A in device 1
  3. Select user you will chat and scroll the chat to 10-30 messages to top
  4. Back to LHN
  5. Log in with account B in device 2
  6. Send 13 messages to account A from device 2
  7. Back to conversation from LHN in device 1 and check the green Marker Badge Count

Expected Result:

I expected to see the same number of messages sent from device 2

Actual Result:

Gives some random number shows as new message count

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • iOS
  • Android
  • mWeb

Version Number:
1.0.88-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Bug5210332_Screen_Recording_20210826-085810_New_Expensify.mp4

Expensify/Expensify Issue URL:

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCash
    on Aug 26, 2021
  2. OSBotify commented on Aug 26, 2021

    @OSBotify
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  3. MelvinBot commented on Aug 26, 2021

    @MelvinBot
    Contributor

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

  4. alex-mechler commented on Aug 26, 2021

    @alex-mechler
    Contributor

    I was able to reproduce on staging only, will look into what might be causing this 👀

  5. alex-mechler commented on Aug 26, 2021

    @alex-mechler
    Contributor

    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.

    cc @parasharrajat

  6. parasharrajat commented on Aug 26, 2021

    @parasharrajat
    Member

    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.

  7. alex-mechler commented on Aug 26, 2021

    @alex-mechler
    Contributor

    Awesome, thanks! Will assign you to this then!

  8. roryabraham commented on Aug 27, 2021

    @roryabraham
    Contributor

    Sorry for missing this in my PR review! Thanks for figuring this out @alex-mechler

  9. isagoico commented on Aug 27, 2021

    @isagoico

    Retested this on Android and it was a pass 🎉 Removing the deploy blocker label.

  10. removed
    DeployBlockerCash
    on Aug 27, 2021
  11. parasharrajat commented on Aug 28, 2021

    @parasharrajat
    Member

    I can't close this issue but cc: @roryabraham

  12. isagoico commented on Aug 30, 2021

    @isagoico

    Issue not reproducible during KI retests (FIxed)

  13. botify commented on Aug 30, 2021

    @botify

    🚀 Deployed to staging by @roryabraham in version: 1.0.88-3 🚀

    platform result
    🤖 android 🤖 cancelled 🔪
    🖥 desktop 🖥 cancelled 🔪
    🍎 iOS 🍎 cancelled 🔪
    🕸 web 🕸 success ✅
  14. botify commented on Aug 30, 2021

    @botify

    🚀 Deployed to production by @roryabraham in version: 1.0.88-2 🚀

    platform result
    🤖 android 🤖 success ✅
    🖥 desktop 🖥 success ✅
    🍎 iOS 🍎 failure ❌
    🕸 web 🕸 success ✅
  15. botify commented on Sep 1, 2021

    @botify

    🚀 Deployed to production by @roryabraham in version: 1.0.90-2 🚀

    platform result
    🤖 android 🤖 success ✅
    🖥 desktop 🖥 success ✅
    🍎 iOS 🍎 failure ❌
    🕸 web 🕸 success ✅
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions