Skip to content

Room - Offline created custom room does not display default avatar #72326

Closed

Description

@nlemma

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.29-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/test-runs/TR-1235/folder/13176685/41236592/945414506
Email or phone of affected tester (no customers): gocemate+b2154489@gmail.com
Issue reported by: Applause Internal Team
Device used: Lenovo 80ES / Windows 10 Pro
App Component: Other

Action Performed:

  1. Login with new gmail account
  2. Go offline
  3. Create workspace
  4. Create room
  5. Click on header
  6. Look at avatar section on detailed room page

Expected Result:

Default avatar should be displayed

Actual Result:

No avatar is dipslayed

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

Bug6970740_1760100815059.Recording__6202.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @eh2077

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 10, 2025
  2. melvin-bot commented on Oct 10, 2025

    @melvin-bot

    Triggered auto assignment to @brianlee-expensify (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. melvin-bot commented on Oct 10, 2025

    @melvin-bot

    Triggered auto assignment to @flodnv (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. melvin-bot commented on Oct 10, 2025

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Oct 10, 2025

    @github-actions
    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.
  6. andriferry commented on Oct 10, 2025

    @andriferry

    Proposal

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

    Room - Offline created custom room does not display default avatar

    What is the root cause of that problem?

    It's causing the ?? (nullish coalescing) operator only replaces the value when the left-hand side is null or undefined — not when it’s an empty string (""), 0, or false.
    In this case,report.avatarUrl ends up taking an empty string. Because the avatar is never uploaded.

    source={report.avatarUrl ?? icon.source}

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

    Just change to conditional (ternary) operator like this

    source={report.avatarUrl ? report.avatarUrl :  icon.source}
    
    // or 
    
    source={report.avatarUrl !== '' ? report.avatarUrl :  icon.source}

    What alternative solutions did you explore? (Optional)

    N/A

    Result

    Screen.Recording.2025-10-10.at.21.31.49.mp4

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  7. brianlee-expensify commented on Oct 10, 2025

    @brianlee-expensify
    Contributor

    confirmed that i can reproduce on staging.new.expensify.com

    Image
  8. brianlee-expensify commented on Oct 10, 2025

    @brianlee-expensify
    Contributor

    @flodnv hello! any thoughts on next steps here?

  9. 10 remaining items

  10. mountiny commented on Oct 13, 2025

    @mountiny
    Contributor

    @samranahm @Beamanator @eh2077 comes from #66883 most likely

  11. Beamanator commented on Oct 15, 2025

    @Beamanator
    Contributor

    PR was reverted, looks like next PR is WIP

  12. eh2077 commented on Oct 21, 2025

    @eh2077
    Contributor

    discussion is ongoing in the parent issue #65210

  13. eh2077 commented on Oct 28, 2025

    @eh2077
    Contributor

    commented in the parent issue #65210 (comment)

  14. eh2077 commented on Nov 14, 2025

    @eh2077
    Contributor

    @Beamanator I think this can be closed.

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.EngineeringReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions