diff --git a/src/ONYXKEYS.ts b/src/ONYXKEYS.ts index deac88d2dbb8..2a7e41df0b04 100755 --- a/src/ONYXKEYS.ts +++ b/src/ONYXKEYS.ts @@ -538,9 +538,6 @@ const ONYXKEYS = { /** The user's Concierge reportID */ CONCIERGE_REPORT_ID: 'conciergeReportID', - /** The user's Self DM reportID */ - SELF_DM_REPORT_ID: 'selfDMReportID', - /** The details of unknown user while sharing a file - we don't know if they exist */ SHARE_UNKNOWN_USER_DETAILS: 'shareUnknownUserDetails', @@ -1304,7 +1301,6 @@ type OnyxValuesMapping = { [ONYXKEYS.IS_USING_IMPORTED_STATE]: boolean; [ONYXKEYS.NVP_EXPENSIFY_COMPANY_CARDS_CUSTOM_NAMES]: Record; [ONYXKEYS.CONCIERGE_REPORT_ID]: string; - [ONYXKEYS.SELF_DM_REPORT_ID]: string; [ONYXKEYS.SHARE_UNKNOWN_USER_DETAILS]: Participant; [ONYXKEYS.SHARE_TEMP_FILE]: OnyxTypes.ShareTempFile; [ONYXKEYS.VALIDATED_FILE_OBJECT]: OnyxTypes.FileObject | undefined; diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index cd21a1303b7a..47283560790d 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -1199,12 +1199,6 @@ Onyx.connectWithoutView({ }, }); -let cachedSelfDMReportID: OnyxEntry; -Onyx.connectWithoutView({ - key: ONYXKEYS.SELF_DM_REPORT_ID, - callback: (value) => (cachedSelfDMReportID = value), -}); - let hiddenTranslation = ''; let unavailableTranslation = ''; @@ -1868,9 +1862,6 @@ function isConciergeChatReport(report: OnyxInputOrEntry): boolean { } function findSelfDMReportID(): string | undefined { - if (cachedSelfDMReportID) { - return cachedSelfDMReportID; - } if (!allReports) { return; }