Skip to content

[$250] Self DM is seen after creating account with Chat and split with friends #72874

Closed

Description

@lanitochka17

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.33-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://test-management.browserstack.com/projects/2219752/test-runs/TR-1363/41237663/958158625?sort=%2Bidentifier
Issue reported by: Applause - Internal Team

Action Performed:

  1. Sign in to staging.new.expensify.com with a new account
  2. In the onboarding modal, select "Chat and Split with friends" and fill out the rest as desired
  3. In search bar search for the email address used to sign in to

Expected Result:

Self DM is not seen

Actual Result:

Self DM can be searched in search and when navigated to Self Dm can be seen for a moment before an error "Auth OpenReport returned an error" is displayed at the bottom

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6977637_1760698716219.bandicam_2025-10-17_13-44-02-452.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021980578529030494823
  • Upwork Job ID: 1980578529030494823
  • Last Price Increase: 2025-10-21
Issue OwnerCurrent Issue Owner: @MonilBhavsar

Activity

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

    @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. lorretheboy commented on Oct 17, 2025

    @lorretheboy
    Contributor

    Proposal

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

    Self DM can be searched in search and when navigated to Self Dm can be seen for a moment before an error "Auth OpenReport returned an error" is displayed at the bottom

    What is the root cause of that problem?

    We include self DM here

    includeCurrentUser: true,

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

    Should change to false

    Note: We may check all the places that call getSearchOptions to pass the correct value of includeCurrentUser

    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. Burhan-Rashid commented on Oct 17, 2025

    @Burhan-Rashid
    Contributor

    Proposal

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

    Self DM is seen after creating account with Chat and split with friends

    What is the root cause of that problem?

    We are always including having includeCurrentUser: true in getSearchOptions here:

    return getSearchOptions({
    options,
    draftComments,
    betas: betas ?? [],
    isUsedInChatFinder: true,
    includeReadOnly: true,
    searchQuery: autocompleteQueryValue,
    maxResults: CONST.AUTO_COMPLETE_SUGGESTER.MAX_AMOUNT_OF_SUGGESTIONS,
    includeUserToInvite: true,
    includeRecentReports: true,
    includeCurrentUser: true,
    countryCode,
    shouldShowGBR: false,
    });

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

    We need to check if the user has selected "Chat and split with friends" in the onboarding flow, then we set this option as false otherwise it should always be true, for that we need the following changes:

        const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {canBeMissing: true});

    includeCurrentUser: true,

         includeCurrentUser: introSelected?.choice !== CONST.ONBOARDING_CHOICES.CHAT_SPLIT,

    We can check other places as well where we are using getSearchOptions function and see if we need any changes there.

    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.

  5. gijoe0295 commented on Oct 17, 2025

    @gijoe0295
    Contributor

    Can be a back-end issue, SearchForReports responds the self-DM even when it's suppose not to exist.

  6. added
    External
    on Oct 21, 2025
  7. melvin-bot commented on Oct 21, 2025

    @melvin-bot
  8. changed the title [-]Self DM is seen after creating account with Chat and split with friends[/-] [+][$250] Self DM is seen after creating account with Chat and split with friends[/+] on Oct 21, 2025
  9. added
    Help Wanted
    on Oct 21, 2025
  10. moved this to Bugs and Follow Up Issues in #expensify-bugson Oct 21, 2025
  11. 6 remaining items

  12. lorretheboy commented on Oct 23, 2025

    @lorretheboy
    Contributor

    If we make it false directly it will cause the same #67609 which was fixed by this PR

    @Burhan-Rashid Could u please clarify a bit. It is different change, I don't really know how it can bring back that previous issue here

  13. Burhan-Rashid commented on Oct 23, 2025

    @Burhan-Rashid
    Contributor

    If we make it false directly it will cause the same #67609 which was fixed by this PR

    @Burhan-Rashid Could u please clarify a bit. It is different change, I don't really know how it can bring back that previous issue here

    I am not 100% sure but seeing this value true was added in your previous PR, i thought if we move it to false directly, it might affect there.

  14. lorretheboy commented on Oct 23, 2025

    @lorretheboy
    Contributor

    @Burhan-Rashid they are 2 different places. I think I dont revert anything from that PR

  15. linhvovan29546 commented on Oct 24, 2025

    @linhvovan29546
    Contributor

    Thank you all for the proposals:

    @Burhan-Rashid: Your proposal is similar to the first one that checks introSelected. I don't think this is necessary because we have other introSelected without sell DM as well.

    @lorretheboy: After checking the the git, includeCurrentUser was mistakenly added in PR #70409. Previously, includeCurrentUser was false.

  16. linhvovan29546 commented on Oct 24, 2025

    @linhvovan29546
    Contributor

    We can move forward with @lorretheboy's proposal, we only need to update this

    includeCurrentUser: true,

    🎀 👀 🎀 C+ reviewed

  17. melvin-bot commented on Oct 24, 2025

    @melvin-bot

    Triggered auto assignment to @MonilBhavsar, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

  18. Burhan-Rashid commented on Oct 24, 2025

    @Burhan-Rashid
  19. lorretheboy commented on Oct 24, 2025

    @lorretheboy
    Contributor

    They are 2 different changes

    In this PR #68841, it set true to search function for exporter, from,....

    Image

    However, what I suggested in my proposal is changing this place

    Image

    So I think there is no conflict here @Burhan-Rashid Please correct me if I'm wrong or could you please let me know how it can effect please?

  20. Burhan-Rashid commented on Oct 24, 2025

    @Burhan-Rashid
    Contributor

    @lorretheboy I might have mistaken both the changes on the same place, Sorry for that. I have hidden my comment.

  21. MonilBhavsar commented on Oct 27, 2025

    @MonilBhavsar
    Contributor

    Expected Result:
    Self DM is not seen

    We're already working on an update internally where we are creating self DM's for all users going forward, and users will be able to search it from the search bar in https://github.com/Expensify/Expensify/issues/556957
    So going to close it. Thanks for the proposals though. cc @linhvovan29546 @bfitzexpensify

  22. moved this from Bugs and Follow Up Issues to Done in #expensify-bugson Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyExternalHelp Wanted

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions