From a837773c8d683d87a088c4ffab60582fb897dd25 Mon Sep 17 00:00:00 2001 From: Chuck Dries Date: Mon, 15 Dec 2025 09:26:49 -0800 Subject: [PATCH] Revert "fix: Duplicate Self DM chat displayed in LHN after unreporting an expense" --- src/ONYXKEYS.ts | 4 ---- src/libs/ReportUtils.ts | 9 --------- 2 files changed, 13 deletions(-) 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; }