Skip to content

[Payment 2024-11-07] [$250] mWeb - Group chat - Not here page appears briefly when last member leave the group chat #49468

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: 9.0.38-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://expensify.testrail.io/index.php?/tests/view/4985233&group_by=cases:section_id&group_order=asc&group_id=229067
Email or phone of affected tester (no customers): gocemate+a2197@gmail.com
Issue reported by: Applause Internal Team
Slack conversation:

Action Performed:

  1. Create a group chat
  2. Click on the header
  3. Remove all existing members from the group
  4. Click Leave the group
  5. Confirm leaving the group participant

Expected Result:

There should be no error page

Actual Result:

Not here page appears briefly when last member leave the group chat

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Bug6608577_1726732763600.Recording__3970.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021836833773766101729
  • Upwork Job ID: 1836833773766101729
  • Last Price Increase: 2024-10-10
  • Automatic offers:
    • wildan-m | Contributor | 104431872
Issue OwnerCurrent Issue Owner: @strepanier03

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Sep 19, 2024
  2. melvin-bot commented on Sep 19, 2024

    @melvin-bot

    Triggered auto assignment to @strepanier03 (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 19, 2024

    @IuliiaHerets
    Author

    @strepanier03 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. FitseTLT commented on Sep 19, 2024

    @FitseTLT
    Contributor

    Edited by proposal-police: This proposal was edited at 2024-09-19 14:29:35 UTC.

    Proposal

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

    mWeb - Group chat - Not here page appears briefly when last member leave the group chat

    What is the root cause of that problem?

    We dismissModal and then call the leaveGroupChat here

    Navigation.dismissModal();
    Navigation.isNavigationReady().then(() => {
    if (isRootGroupChat) {
    Report.leaveGroupChat(report.reportID);

    We are deleting the report optimistically before navigating to recent chat in leaveGroupChat
    navigateToMostRecentReport(report);

    hence if the navigation is not quick enough we will see a not found page as the group chat is deleted in onyx

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

    We should execute the deleting code after the navigateToMostRecentReport has finished.
    We can do that by either calling navigateToMostRecentReport first and call the optimistic code and api call after/in

    1. isNavigationReady
    2. InteractionManager.runAfterInteractions
    3. after some custom set timeout

    A similar method can used for leaveRoom too.

    What alternative solutions did you explore? (Optional)

  5. dominictb commented on Sep 19, 2024

    @dominictb
    Contributor

    Edited by proposal-police: This proposal was edited at 2024-09-19 17:43:49 UTC.

    Proposal

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

    Not here page appears briefly when last member leave the group chat

    What is the root cause of that problem?

    We're waiting for dismissModal navigation to trigger Report.leaveGroupChat(report.reportID)

    so we can see the not found page for a shot time

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

    1. After dismissModal, we should call goBack to remove the group/thread chat (because that group/thread will be deleted). We just did the same in here
        const leaveChat = useCallback(() => {
            Navigation.dismissModal();
            Navigation.goBack()
            Navigation.isNavigationReady().then(() => {
    
    1. Then Report.leaveGroupChat(report.reportID) will open the latest report

    Change

    Navigation.goBack(lastAccessedReportRoute);

    to

    Navigation.navigate(lastAccessedReportRoute);
    
    1. We need to remove these lines since we already goBack before

    What alternative solutions did you explore? (Optional)

    We can consider to remove Navigation.isNavigationReady() in here. I tested this issue and the bug that needs isNavigationReady and they worked well

    Result

    Screen.Recording.2024-09-26.at.15.33.14.mov
  6. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Sep 19, 2024
  7. melvin-bot commented on Sep 19, 2024

    @melvin-bot
  8. changed the title [-]mWeb - Group chat - Not here page appears briefly when last member leave the group chat[/-] [+][$250] mWeb - Group chat - Not here page appears briefly when last member leave the group chat[/+] on Sep 19, 2024
  9. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Sep 19, 2024
  10. melvin-bot commented on Sep 19, 2024

    @melvin-bot

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

  11. parasharrajat commented on Sep 19, 2024

    @parasharrajat
    Member

    Reviewing..

  12. 51 remaining items

  13. melvin-bot commented on Oct 31, 2024

    @melvin-bot

    @parasharrajat @strepanier03 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]

  14. strepanier03 commented on Nov 7, 2024

    @strepanier03
  15. strepanier03 commented on Nov 7, 2024

    @strepanier03
    Contributor

    Payment Summary

  16. strepanier03 commented on Nov 7, 2024

    @strepanier03
    Contributor

    @parasharrajat - I'll check in later for the checklist. Once it's done I'll make the reg test and remove the hold from the payment summary.

  17. changed the title [-][HOLD for payment 2024-11-07] [$250] mWeb - Group chat - Not here page appears briefly when last member leave the group chat[/-] [+][Payment 2024-11-07] [$250] mWeb - Group chat - Not here page appears briefly when last member leave the group chat[/+] on Nov 7, 2024
  18. parasharrajat commented on Nov 8, 2024

    @parasharrajat
    Member

    BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

    Regression Test Steps

    1. Create a group chat
    2. Click on the header
    3. Remove all existing members from the group
    4. Click Leave the group
    5. Confirm leaving the group participant
    6. Verify no "not found" page appeared

    Do you agree 👍 or 👎 ?

  19. strepanier03 commented on Nov 8, 2024

    @strepanier03
    Contributor

    All right @parasharrajat thanks for doing that checklist! I have removed the hold from the payment summary so feel free to request payment. Thanks again!

  20. added
    ReviewingHas a PR in review
    and removed on Dec 5, 2024
  21. parasharrajat commented on Dec 12, 2024

    @parasharrajat
    Member

    Payment requested as per #49468 (comment)

  22. JmillsExpensify commented on Dec 16, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @parasharrajat

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions