diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index 31c3ced2ae5b..efbce3997bfb 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -3919,6 +3919,7 @@ function leaveRoom(reportID: string, currentUserAccountID: number, isWorkspaceMe // If this is the leave action from a workspace room, simply dismiss the modal, i.e., allow the user to view the room and join again immediately. // If this is the leave action from a chat thread (even if the chat thread is in a room), do not allow the user to stay in the thread after leaving. if (isWorkspaceMemberLeavingWorkspaceRoom && !isChatThread) { + Navigation.dismissModal(); return; } // In other cases, the report is deleted and we should move the user to another report.