From be719efed636ea17cdbc1b16c525fceaeaa5218a Mon Sep 17 00:00:00 2001 From: Francois Laithier Date: Mon, 22 Jul 2024 09:21:15 -0700 Subject: [PATCH] Revert "fix: allow user to stay in room report screen" --- src/libs/actions/Report.ts | 6 ------ 1 file changed, 6 deletions(-) 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); }