Skip to content

Commit

Permalink
Merge pull request #45921 from Expensify/revert-45370-fix/41780-leave…
Browse files Browse the repository at this point in the history
…-room

(cherry picked from commit 2c99d8b)
  • Loading branch information
francoisl authored and OSBotify committed Jul 22, 2024
1 parent 5107d61 commit 50c3b76
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 @@ -2765,12 +2765,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 50c3b76

Please sign in to comment.