From 60c0650835ec2f3dbbe6e0c99fbc4e83d3e682ea Mon Sep 17 00:00:00 2001 From: wikuskriek Date: Wed, 22 Nov 2023 15:44:04 +0200 Subject: [PATCH] revert: 25521 --- src/CONST.ts | 1 - src/libs/Navigation/AppNavigator/ReportScreenIDSetter.js | 7 ------- 2 files changed, 8 deletions(-) diff --git a/src/CONST.ts b/src/CONST.ts index 9e7c1f007335..87bd95a9fb66 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -1357,7 +1357,6 @@ const CONST = { TIME_STARTS_01: /^01:\d{2} [AP]M$/, TIME_FORMAT: /^\d{2}:\d{2} [AP]M$/, DATE_TIME_FORMAT: /^\d{2}-\d{2} \d{2}:\d{2} [AP]M$/, - ATTACHMENT_ROUTE: /\/r\/(\d*)\/attachment/, ILLEGAL_FILENAME_CHARACTERS: /\/|<|>|\*|"|:|\?|\\|\|/g, ENCODE_PERCENT_CHARACTER: /%(25)+/g, diff --git a/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.js b/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.js index 70a33ee34a67..bb7acddb188c 100644 --- a/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.js +++ b/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.js @@ -3,7 +3,6 @@ import PropTypes from 'prop-types'; import {useEffect} from 'react'; import {withOnyx} from 'react-native-onyx'; import usePermissions from '@hooks/usePermissions'; -import Navigation from '@libs/Navigation/Navigation'; import * as ReportUtils from '@libs/ReportUtils'; import reportPropTypes from '@pages/reportPropTypes'; import * as App from '@userActions/App'; @@ -61,12 +60,6 @@ const defaultProps = { * @returns {Number} */ const getLastAccessedReportID = (reports, ignoreDefaultRooms, policies, isFirstTimeNewExpensifyUser, openOnAdminRoom) => { - // If deeplink url contains reportID params, we should show the report that has this reportID. - const currentRoute = Navigation.getActiveRoute(); - const {reportID} = ReportUtils.parseReportRouteParams(currentRoute); - if (reportID) { - return reportID; - } const lastReport = ReportUtils.findLastAccessedReport(reports, ignoreDefaultRooms, policies, isFirstTimeNewExpensifyUser, openOnAdminRoom); return lodashGet(lastReport, 'reportID'); };