Skip to content

[Due for payment 2025-12-05] [$250] Invited member to expense report sees the chat with fallback avatar on LHN #74052

Closed

Description

@jponikarchuk

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


Version Number: v9.2.42-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: Exploratory
Email or phone of affected tester (no customers): gocemate+b2154894@gmail.com
Issue reported by: Applause Internal Team
Device used: Lenovo 80ES / Windows 10 Pro
App Component: Left Hand Navigation (LHN)

Action Performed:

  1. Go to staging.new.expensify.com
  2. [User A] Submit two expenses to User B.
  3. [User A] Go to the expense report.
  4. [User A] Send a message containing User C mention.
  5. [User A] Invite User C by clicking Invite them on the whisper.
  6. [User C] Check when chat appears on LHN

Expected Result:

There should be default avatar

Actual Result:

When User C is invited to expenses report - chat with fallback avatar appears on LHN

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021985871265504738354
  • Upwork Job ID: 1985871265504738354
  • Last Price Increase: 2025-11-05
Issue OwnerCurrent Issue Owner: @greg-schroeder

Activity

  1. added
    Daily
    Bug
    on Nov 2, 2025
  2. melvin-bot commented on Nov 2, 2025

    @melvin-bot

    Triggered auto assignment to @greg-schroeder (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. mukhrr commented on Nov 3, 2025

    @mukhrr
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Invited member to expense report sees the chat with fallback avatar on LHN

    What is the root cause of that problem?

    We miss avatar when building optimistic data of a user here

    personalDetailsNew[accountID] = {
    login,
    accountID,
    displayName: formatPhoneNumber(login),
    isOptimisticPersonalDetail: true,
    };

    What changes do you think we should make in order to solve the problem?

    We need to add avatar

            personalDetailsNew[accountID] = {
                login,
                accountID,
                avatar: getDefaultAvatarURL(accountID, login),
                displayName: formatPhoneNumber(login),
                isOptimisticPersonalDetail: true,
            };

    And also fix should return correct optimistic and finally data test in getPersonalDetailsOnyxDataForOptimisticUsers block inside tests/unit/libs/PersonalDetailsUtilsTest.ts

                const expected = {
                    optimisticData: [
                        {
                            key: ONYXKEYS.PERSONAL_DETAILS_LIST,
                            onyxMethod: 'merge',
                            value: {
                                // eslint-disable-next-line @typescript-eslint/naming-convention
                                '1': {
                                    accountID: 1,
                                    avatar: 'https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_15.png',
                                    displayName: '3322076524',
                                    isOptimisticPersonalDetail: true,
                                    login: '3322076524',
                                },
                                // eslint-disable-next-line @typescript-eslint/naming-convention
                                '2': {
                                    accountID: 2,
                                    avatar: 'https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_18.png',
                                    displayName: 'test2@test.com',
                                    isOptimisticPersonalDetail: true,
                                    login: 'test2@test.com',
                                },
                                // eslint-disable-next-line @typescript-eslint/naming-convention
                                '3': {
                                    accountID: 3,
                                    avatar: 'https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_6.png',
                                    displayName: '(418) 543-8090',
                                    isOptimisticPersonalDetail: true,
                                    login: '+14185438090',
                                },
                            },
                        },
                    ],

    What alternative solutions did you explore? (Optional)

  4. added
    External
    on Nov 5, 2025
  5. melvin-bot commented on Nov 5, 2025

    @melvin-bot
  6. changed the title [-]Invited member to expense report sees the chat with fallback avatar on LHN[/-] [+][$250] Invited member to expense report sees the chat with fallback avatar on LHN[/+] on Nov 5, 2025
  7. greg-schroeder commented on Nov 5, 2025

    @greg-schroeder
    Contributor

    Sending through to External

  8. added
    Help Wanted
    and removed on Nov 5, 2025
  9. melvin-bot commented on Nov 5, 2025

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (External)

  10. 27 remaining items

  11. melvin-bot commented on Nov 28, 2025

    @melvin-bot

    @mananjadhav @greg-schroeder The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  12. added
    Daily
    and removed
    Weekly
    on Dec 4, 2025
  13. mananjadhav commented on Dec 5, 2025

    @mananjadhav
    Collaborator

    BugZero Checklist:

    • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to comment: I couldn't pinpoint the exact offending PR.

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion:

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue:

    Regression Test Proposal

    Precondition:

    • Have 3 user accounts - User A, User B, and User C.

    Test:

    1. [User A] Submit two expenses to User B.
    2. [User A] Go to the expense report.
    3. [User A] Send a message containing User C mention.
    4. [User A] Invite User C by clicking Invite them on the whisper.
    5. [User C] Check when chat appears on LHN

    Do we agree 👍 or 👎

  14. melvin-bot commented on Dec 5, 2025

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@greg-schroeder)

    • (if NewFeature) I have created a PR for any necessary HelpDot updates, or I confirmed no updates are necessary.
    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1985871265504738354/hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  15. mukhrr commented on Dec 8, 2025

    @mukhrr
    Contributor

    @greg-schroeder so is this due payment?!

  16. greg-schroeder commented on Dec 8, 2025

    @greg-schroeder
    Contributor

    Yes, sorry, handling

  17. greg-schroeder commented on Dec 8, 2025

    @greg-schroeder
    Contributor

    FYI @mukhrr any time you see this comment, you should apply to the job so you can get an automatic offer

  18. greg-schroeder commented on Dec 8, 2025

    @greg-schroeder
    Contributor

    Sent an offer, I'll pay you as soon as you accept!

  19. mukhrr commented on Dec 8, 2025

    @mukhrr
    Contributor

    @greg-schroeder thanks! I accepted the offer

  20. quinthar commented on Dec 18, 2025

    @quinthar
    Contributor

    Approved $250 to @mananjadhav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions