From c47526189aa32ecbdab643d6b2bb8d3e3dab7494 Mon Sep 17 00:00:00 2001 From: Samran Ahmed Date: Sun, 26 Oct 2025 22:13:05 +0500 Subject: [PATCH 1/2] fix: concierge missing as last actor when last Action is IOU --- src/libs/OptionsListUtils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/OptionsListUtils/index.ts b/src/libs/OptionsListUtils/index.ts index b3171ca331f2..693537c6af25 100644 --- a/src/libs/OptionsListUtils/index.ts +++ b/src/libs/OptionsListUtils/index.ts @@ -441,7 +441,7 @@ function shouldShowLastActorDisplayName(report: OnyxEntry, lastActorDeta !lastActorDetails || reportUtilsIsSelfDM(report) || (isDM(report) && lastActorDetails.accountID !== currentUserAccountID) || - lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.IOU || + (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.IOU && lastAction?.childVisibleActionCount === 0) || (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.REPORT_PREVIEW && Object.keys(report?.participants ?? {})?.some((participantID) => participantID === CONST.ACCOUNT_ID.MANAGER_MCTEST.toString())) ) { From 17375493dfee23d6bca1d79634acf2e7b07b6900 Mon Sep 17 00:00:00 2001 From: Samran Ahmed Date: Wed, 29 Oct 2025 18:27:03 +0500 Subject: [PATCH 2/2] fix: suppress actor name for IOU only if last actor is not CONCIERGE --- src/libs/OptionsListUtils/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libs/OptionsListUtils/index.ts b/src/libs/OptionsListUtils/index.ts index 693537c6af25..7aacf3099e1b 100644 --- a/src/libs/OptionsListUtils/index.ts +++ b/src/libs/OptionsListUtils/index.ts @@ -437,11 +437,14 @@ function getLastActorDisplayName(lastActorDetails: Partial | nu * Should show the last actor display name from last actor details. */ function shouldShowLastActorDisplayName(report: OnyxEntry, lastActorDetails: Partial | null, lastAction: OnyxEntry) { + const reportID = report?.reportID; + const lastReportAction = reportID ? lastVisibleReportActions[reportID] : lastAction; + if ( !lastActorDetails || reportUtilsIsSelfDM(report) || (isDM(report) && lastActorDetails.accountID !== currentUserAccountID) || - (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.IOU && lastAction?.childVisibleActionCount === 0) || + (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.IOU && lastReportAction?.actorAccountID !== CONST.ACCOUNT_ID.CONCIERGE) || (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.REPORT_PREVIEW && Object.keys(report?.participants ?? {})?.some((participantID) => participantID === CONST.ACCOUNT_ID.MANAGER_MCTEST.toString())) ) {