Skip to content

[Due for payment 2026-01-21] [$250] Web - Chat - Self DM title only shows [Name] without (You) #78748

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: 9.2.90-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: https://test-management.browserstack.com/projects/2219752/test-runs/TR-2595/folder/13176682/41236558/1101372284?q=self+dm&issue_type=jira
Email or phone of affected tester (no customers): sjndoijsndoijdniojosj2@gmail.com
Issue reported by: Applause Internal Team
Bug source: Regression TC Execution
Device used: Mac 26.1 / Chrome
App Component: Chat Report View

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to self DM.
  3. Send a message,

Expected Result:

Self DM title will show [Name] (You).

Actual Result:

Self DM title only shows [Name] without (You).

It shows [Name] (You) in search list.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

1.mp4
Image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022006670622924556416
  • Upwork Job ID: 2006670622924556416
  • Last Price Increase: 2026-01-01
Issue OwnerCurrent Issue Owner: @bfitzexpensify

Activity

  1. added
    Daily
    Bug
    on Jan 1, 2026
  2. melvin-bot commented on Jan 1, 2026

    @melvin-bot

    Triggered auto assignment to @bfitzexpensify (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. samranahm commented on Jan 1, 2026

    @samranahm
    Contributor

    Proposal

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

    When a user accesses their self Direct Message (DM), the chat title displays only the user's name (e.g., "[Name]") without the "(You)" label that should distinguish it as the user's own DM. This is inconsistent with how self DMs appear in the search list, where they correctly display "[Name] (You)".

    What is the root cause of that problem?

    The DisplayNames component has two display modes:

    • Full Title Mode shouldUseFullTitle = true

    Uses the pre-computed fullTitle string from getReportName()
    For self-DM, this includes "(you)" postfix added.

    • Participant List Mode shouldUseFullTitle = false

    It dynamically builds display from displayNamesWithTooltips array and shows "Name1, Name2, Name3..." with individual tooltips.

    Therefore it does not add "(you)" postfix because tooltips are just participant names

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

    We should pass !!optionItem.isSelfDM in OptionRowLHN here

    shouldUseFullTitle={
    !!optionItem.isChatRoom ||
    !!optionItem.isPolicyExpenseChat ||
    !!optionItem.isTaskReport ||
    !!optionItem.isThread ||
    !!optionItem.isMoneyRequestReport ||
    !!optionItem.isInvoiceReport ||
    !!optionItem.private_isArchived ||
    isGroupChat(report) ||
    isSystemChat(report)
    }

    and isSelfDM in HeaderView here

    shouldUseFullTitle={isChatRoom || isPolicyExpenseChat || isChatThread || isTaskReport || shouldUseGroupTitle || isReportArchived}

    This will ensure when we are in selfDM report or selfDM is in LHN we always get (You) postfix because it will only have one member (current user)

    What alternative solutions did you explore? (Optional)

    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.

  4. samranahm commented on Jan 1, 2026

    @samranahm
    Contributor
  5. moved this to Bugs and Follow Up Issues in #expensify-bugson Jan 1, 2026
  6. added
    External
    on Jan 1, 2026
  7. changed the title [-]Web - Chat - Self DM title only shows [Name] without (You)[/-] [+][$250] Web - Chat - Self DM title only shows [Name] without (You)[/+] on Jan 1, 2026
  8. melvin-bot commented on Jan 1, 2026

    @melvin-bot
  9. added
    Help Wanted
    on Jan 1, 2026
  10. melvin-bot commented on Jan 1, 2026

    @melvin-bot

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

  11. nyomanjyotisa commented on Jan 1, 2026

    @nyomanjyotisa
    Member

    🚨 Edited by proposal-police: This proposal was edited at 2026-01-01 10:42:46 UTC.

    Proposal

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

    Web - Chat - Self DM title only shows [Name] without (You)

    What is the root cause of that problem?

    When calling getDisplayNamesWithTooltips for Self DM, isSelfDM is passed as the 5th parameter, but the function signature uses the 5th parameter for shouldFallbackToHidden and the 6th parameter for shouldAddCurrentUserPostfix

    const displayNamesWithTooltips = getDisplayNamesWithTooltips(participantPersonalDetails, isMultipleParticipant, localeCompare, formatPhoneNumber, isSelfDM);

    App/src/libs/ReportUtils.ts

    Lines 3884 to 3891 in 66de3d6

    function getDisplayNamesWithTooltips(
    personalDetailsList: PersonalDetails[] | PersonalDetailsList | OptionData[],
    shouldUseShortForm: boolean,
    localeCompare: LocaleContextProps['localeCompare'],
    formatPhoneNumber: LocaleContextProps['formatPhoneNumber'],
    shouldFallbackToHidden = true,
    shouldAddCurrentUserPostfix = false,
    ): DisplayNameWithTooltips {

    So isSelfDM is used as shouldFallbackToHidden instead of shouldAddCurrentUserPostfix

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

    We need to pass isSelfDM as the 6th parameter instead of the 5th parameter

        const displayNamesWithTooltips = getDisplayNamesWithTooltips(participantPersonalDetails, isMultipleParticipant, localeCompare, formatPhoneNumber, true, isSelfDM);

    const displayNamesWithTooltips = getDisplayNamesWithTooltips(participantPersonalDetails, isMultipleParticipant, localeCompare, formatPhoneNumber, isSelfDM);

    We could pass isSelfDM in the LHN as well if needed

        // We only create tooltips for the first 10 users or so since some reports have hundreds of users, causing performance to degrade.
        const displayNamesWithTooltips = getDisplayNamesWithTooltips(
            (participantPersonalDetailList || []).slice(0, 10),
            hasMultipleParticipants,
            localeCompare,
            formatPhoneNumberPhoneUtils,
            true,
            isSelfDM(report),
        );

    const displayNamesWithTooltips = getDisplayNamesWithTooltips(
    (participantPersonalDetailList || []).slice(0, 10),
    hasMultipleParticipants,
    localeCompare,
    formatPhoneNumberPhoneUtils,
    isSelfDM(report),
    );

    What alternative solutions did you explore? (Optional)

    None

  12. 16 remaining items

  13. allgandalf commented on Jan 8, 2026

    @allgandalf
    Contributor

    PR in review

  14. allgandalf commented on Jan 12, 2026

    @allgandalf
    Contributor

    PR approved

  15. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Jan 14, 2026
  16. changed the title [-][$250] Web - Chat - Self DM title only shows [Name] without (You)[/-] [+][Due for payment 2026-01-21] [$250] Web - Chat - Self DM title only shows [Name] without (You)[/+] on Jan 14, 2026
  17. removed
    Reviewing
    on Jan 14, 2026
  18. melvin-bot commented on Jan 14, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  19. melvin-bot commented on Jan 14, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.0-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-01-21. 🎊

    For reference, here are some details about the assignees on this issue:

  20. melvin-bot commented on Jan 14, 2026

    @melvin-bot

    @shubham1206agra @bfitzexpensify 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]

  21. allgandalf commented on Jan 14, 2026

    @allgandalf
    Contributor

    Unassigning myself and unsubscribing, please ping me if something is needed from my side

  22. removed their assignment
    on Jan 14, 2026
  23. mountiny commented on Jan 14, 2026

    @mountiny
    Contributor

    I think there are no payments needed here as it was a follow up so we can close

  24. moved this from Bugs and Follow Up Issues to Done in #expensify-bugson Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugExternalWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions