File tree Expand file tree Collapse file tree
src/libs/OptionsListUtils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -437,11 +437,14 @@ function getLastActorDisplayName(lastActorDetails: Partial<PersonalDetails> | nu
437437 * Should show the last actor display name from last actor details.
438438 */
439439function shouldShowLastActorDisplayName ( report : OnyxEntry < Report > , lastActorDetails : Partial < PersonalDetails > | null , lastAction : OnyxEntry < ReportAction > ) {
440+ const reportID = report ?. reportID ;
441+ const lastReportAction = reportID ? lastVisibleReportActions [ reportID ] : lastAction ;
442+
440443 if (
441444 ! lastActorDetails ||
442445 reportUtilsIsSelfDM ( report ) ||
443446 ( isDM ( report ) && lastActorDetails . accountID !== currentUserAccountID ) ||
444- ( lastAction ?. actionName === CONST . REPORT . ACTIONS . TYPE . IOU && lastAction ?. childVisibleActionCount === 0 ) ||
447+ ( lastAction ?. actionName === CONST . REPORT . ACTIONS . TYPE . IOU && lastReportAction ?. actorAccountID !== CONST . ACCOUNT_ID . CONCIERGE ) ||
445448 ( lastAction ?. actionName === CONST . REPORT . ACTIONS . TYPE . REPORT_PREVIEW &&
446449 Object . keys ( report ?. participants ?? { } ) ?. some ( ( participantID ) => participantID === CONST . ACCOUNT_ID . MANAGER_MCTEST . toString ( ) ) )
447450 ) {
You can’t perform that action at this time.
0 commit comments