Skip to content

Commit

Permalink
Merge pull request Expensify#45921 from Expensify/revert-45370-fix/41…
Browse files Browse the repository at this point in the history
…780-leave-room
  • Loading branch information
francoisl authored Jul 22, 2024
2 parents c2ec4f9 + be719ef commit 2c99d8b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2768,12 +2768,6 @@ function leaveRoom(reportID: string, isWorkspaceMemberLeavingWorkspaceRoom = fal
};

API.write(WRITE_COMMANDS.LEAVE_ROOM, parameters, {optimisticData, successData, failureData});

// If this is the leave action from a workspace room or chat thread, simply dismiss the modal, i.e., allow the user to view the room/thread and join again immediately.
if (isWorkspaceMemberLeavingWorkspaceRoom || isChatThread) {
return;
}
// In other cases, the report is deleted and we should move the user to another report.
navigateToMostRecentReport(report);
}

Expand Down

0 comments on commit 2c99d8b

Please sign in to comment.