diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index 0085a341900e..044a9e8fc567 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -2767,12 +2767,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); }