Skip to content

MEDIUM: [$500] After leaving a workspace room, the room is still in the chat view after closing the Concierge chat #33521

Closed

Description

@m-natarajan

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: 1.4.16-3
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @marcochavezf
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1703192168381059

Action Performed:

  1. Log in as account A and create a workspace
  2. Create a room in the workspace with welcome message and visibility as "Workspace"
  3. Invite account B as a member of the workspace created in step 1
  4. Invite the same email/phone number to the workspace room by either mentioning them in the room or in the member list
  5. In a mobile device log in with the invited account
  6. Open the workspace room
  7. Click/tap on the three dots menu
  8. Select the option Leave
    and the workspace room will be still there

Expected Result:

You will see the Concierge chat and when you close it, you should not see the workspace room

Actual Result:

If you close it and the workspace room will be still there

Workaround:

unknown

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

Add any screenshot/video evidence

RPReplay_Final1703191858.MP4
FEZS6149.1.MP4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~011ad515ee3bf6c0e8
  • Upwork Job ID: 1738283285298159616
  • Last Price Increase: 2023-12-22
  • Automatic offers:
    • hoangzinh | Reviewer | 28071460
    • dukenv0307 | Contributor | 28071461

Activity

  1. added
    Daily
    Bug
    on Dec 22, 2023
  2. melvin-bot commented on Dec 22, 2023

    @melvin-bot

    Triggered auto assignment to @isabelastisser (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. melvin-bot commented on Dec 22, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. added
    External
    on Dec 22, 2023
  5. changed the title [-]After leaving a workspace room, the room is still in the chat view after closing the Concierge chat[/-] [+][$500] After leaving a workspace room, the room is still in the chat view after closing the Concierge chat[/+] on Dec 22, 2023
  6. melvin-bot commented on Dec 22, 2023

    @melvin-bot
  7. added
    Help Wanted
    on Dec 22, 2023
  8. melvin-bot commented on Dec 22, 2023

    @melvin-bot

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

  9. FitseTLT commented on Dec 22, 2023

    @FitseTLT
    Contributor

    Proposal

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

    After leaving a workspace room, the room is still in the chat view after closing the Concierge chat

    What is the root cause of that problem?

    Currently we are navigating to concierge chat when we leave room here

    App/src/libs/actions/Report.ts

    Lines 2110 to 2115 in 862b0ea

    if (isWorkspaceMemberLeavingWorkspaceRoom) {
    const participantAccountIDs = PersonalDetailsUtils.getAccountIDsByLogins([CONST.EMAIL.CONCIERGE]);
    const chat = ReportUtils.getChatByParticipants(participantAccountIDs);
    if (chat?.reportID) {
    Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(chat.reportID));
    }

    but the route for the room is still in navigation state so when we navigate back it will navigate to it

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

    We need to delete the room route from the navigation state route so that when we navigate back it will not navigate to it by navigate with action type REPLACE

    What alternative solutions did you explore? (Optional)

  10. dukenv0307 commented on Dec 22, 2023

    @dukenv0307
    Contributor

    Proposal

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

    If you close it and the workspace room will be still there

    What is the root cause of that problem?

    In here, we're just pushing the Concierge route onto the current route, so when coming back from Concierge, it will come back to the room.

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

    In here, we should call Navigation.goBack to pop the current route first before navigating to Concierge.

    Navigation.goBack(ROUTES.HOME);
    Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(chat.reportID));
    

    This is the same approach as we did here for other cases of navigating to Concierge from the report screen due to leaving room, leaving thread, ... so I prefer it.

    What alternative solutions did you explore? (Optional)

    We can call navigate here with FORCED_UP navigation type

    Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(chat.reportID), CONST.NAVIGATION.TYPE.FORCED_UP);
    

    Only FORCED_UP will work, UP as suggested in the above proposal will not work for case of navigating to another report, as expected here (then after I posted my proposal, that proposal was modified to change to navigate with action type REPLACE, this can be validated by checking the proposal edit timeline)

  11. hoangzinh commented on Dec 25, 2023

    @hoangzinh
    Contributor

    @FitseTLT @dukenv0307 Thanks for your proposals. The main proposal from @dukenv0307 looks good to me. If I recall correctly, it's the current recommended way to pop out the current route.

    Link to @dukenv0307's proposal: #33521 (comment)
    🎀👀🎀 C+ reviewed

  12. melvin-bot commented on Dec 25, 2023

    @melvin-bot

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

  13. 8 remaining items

  14. removed
    Help Wanted
    on Dec 28, 2023
  15. melvin-bot commented on Dec 28, 2023

    @melvin-bot

    📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

    Offer link
    Upwork job

  16. melvin-bot commented on Dec 28, 2023

    @melvin-bot

    📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

    Offer link
    Upwork job
    Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
    Keep in mind: Code of Conduct | Contributing 📖

  17. added
    Reviewing
    Weekly
    and removed
    Daily
    on Dec 28, 2023
  18. dukenv0307 commented on Dec 29, 2023

    @dukenv0307
    Contributor

    @hoangzinh this PR is ready for review

  19. isabelastisser commented on Jan 19, 2024

    @isabelastisser
    Contributor

    @dukenv0307 @hoangzinh any updates here?

  20. dukenv0307 commented on Jan 19, 2024

    @dukenv0307
    Contributor

    @isabelastisser The PR is deployed to production more than a week ago but bot doesn't update

  21. quinthar commented on Jan 22, 2024

    @quinthar
    Contributor

    Has this been paid? Can we close this issue?

  22. isabelastisser commented on Jan 22, 2024

    @isabelastisser
    Contributor

    Payment summary:

    @dukenv0307 Contributor $500 paid in Upwork.
    @hoangzinh C+ $500 offer sent in Upwork. Please accept it, and I will process the payment. Thanks!

  23. hoangzinh commented on Jan 22, 2024

    @hoangzinh
    Contributor

    Accepted. Thanks @isabelastisser

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

Metadata

Metadata

Labels

BugExternalReviewingWeekly

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions