Skip to content

[$500] Thread – DM chat beginning appears briefly when open thread as another user #49162

Closed

Description

@IuliiaHerets

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.0.34-2
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://expensify.testrail.io/index.php?/tests/view/4958214
Email or phone of affected tester (no customers): applausetester+jp_e_category_2@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Log in as user A
  3. Open chat with user B
  4. Send a message
  5. Right click and select Reply in thread
  6. Send some comments in the thread
  7. Log in as user B
  8. Open thread created by user A

Expected Result:

DM chat beginning not appears

Actual Result:

DM chat beginning appears briefly

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6602061_1726217596175.DM_chat_beginning.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021843744311773899051
  • Upwork Job ID: 1843744311773899051
  • Last Price Increase: 2024-10-14
Issue OwnerCurrent Issue Owner: @c3024

Activity

  1. added
    Daily
    Bug
    on Sep 13, 2024
  2. melvin-bot commented on Sep 13, 2024

    @melvin-bot

    Triggered auto assignment to @alexpensify (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. IuliiaHerets commented on Sep 13, 2024

    @IuliiaHerets
    Author

    @alexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

  4. melvin-bot commented on Sep 16, 2024

    @melvin-bot

    @alexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  5. alexpensify commented on Sep 16, 2024

    @alexpensify
    Contributor

    Adding this one to my test list and will get to it later this week.

  6. alexpensify commented on Sep 19, 2024

    @alexpensify
    Contributor

    No update yet

  7. melvin-bot commented on Sep 23, 2024

    @melvin-bot

    @alexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

  8. alexpensify commented on Sep 23, 2024

    @alexpensify
    Contributor

    No update

  9. 64 remaining items

  10. tgolen commented on Oct 24, 2024

    @tgolen
    Contributor

    Daily Update

    • I have created an Auth PR which removes the redundant merge() on the report_ key that included the parentReportID being set to null

    Next Steps

    ETA

    • Deployed by Monday, Oct. 28
  11. removed
    Hot Pick
    on Oct 28, 2024
  12. trjExpensify commented on Oct 28, 2024

    @trjExpensify
    Contributor

    Removing the Hot pick label because Tim picked it up. 👍

  13. tgolen commented on Oct 28, 2024

    @tgolen
    Contributor
  14. moved this from CRITICAL to MEDIUM in [#whatsnext] #qualityon Oct 28, 2024
  15. muttmuure commented on Oct 28, 2024

    @muttmuure
    Contributor

    I think that we are going to make Thread related issues MEDIUM priority from now on - but that discussion is still ongoing. I will revert this back to CRITICAL if the conversation goes the other way.

    Thanks for picking it up!

  16. nkdengineer commented on Oct 29, 2024

    @nkdengineer
    Contributor

    @nkdengineer bump again on #49162 (comment).

    Checking this now.

  17. nkdengineer commented on Oct 29, 2024

    @nkdengineer
    Contributor

    @tgolen We have two places that makes a OpenReport API when we open the thread

    1. The first places is expected

    fetchReportIfNeeded();
    // eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps
    }, [isLoadingReportOnyx]);

    1. The second place is unnecessary since it's updated to the wrong condition. The init condition is added here and it compare the reportID param from the current route and the prev route instead of onyxReportID and prevReport?.reportID that causes an unnecessary OpenReport is called when the report prop is the report data and the prevReport is undefined. We should update this condition to the init here
      if (onyxReportID === prevReport?.reportID && (!onyxReportID || onyxReportID === reportIDFromRoute)) {
      return;
      }
      fetchReportIfNeeded();
      ComposerActions.setShouldShowComposeInput(true);
  18. tgolen commented on Oct 29, 2024

    @tgolen
    Contributor

    Great! I will open up an issue and assign it to you. THanks

  19. added
    Weekly
    and removed
    Daily
    on Oct 30, 2024
  20. alexpensify commented on Nov 7, 2024

    @alexpensify
    Contributor

    Update: waiting for the last PR to go to production

  21. tgolen commented on Nov 8, 2024

    @tgolen
    Contributor

    I think everything has been deployed on this and there won't be any payment on this issue since this was mostly a backend issue. The payment for @nkdengineer will be handled in #51680

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

Metadata

Metadata

Labels

AutoAssignerNewDotQualityBugInternalReviewingWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions