diff --git a/src/components/ReportActionAvatars/useReportActionAvatars.ts b/src/components/ReportActionAvatars/useReportActionAvatars.ts index 48f8a142df0a..256e4c4d49df 100644 --- a/src/components/ReportActionAvatars/useReportActionAvatars.ts +++ b/src/components/ReportActionAvatars/useReportActionAvatars.ts @@ -178,7 +178,7 @@ function useReportActionAvatars({ const shouldUseAccountIDs = accountIDs.length > 0; const shouldShowAllActors = displayAllActors && !reportPreviewSenderID; const isChatThreadOutsideTripRoom = isChatThread(chatReport) && !isATripRoom; - const shouldShowSubscriptAvatar = shouldReportShowSubscript(iouReport ?? chatReport, isReportArchived) && isWorkspacePolicy; + const shouldShowSubscriptAvatar = shouldReportShowSubscript(iouReport ?? chatReport, isReportArchived); const shouldShowConvertedSubscriptAvatar = (shouldStackHorizontally || shouldUseAccountIDs) && shouldShowSubscriptAvatar && !reportPreviewSenderID; const isExpense = isMoneyRequestAction(action) && getOriginalMessage(action)?.type === CONST.IOU.ACTION.CREATE; const isWorkspaceExpense = isWorkspacePolicy && isExpense; diff --git a/tests/ui/ReportActionAvatarsTest.tsx b/tests/ui/ReportActionAvatarsTest.tsx index 0389c455e049..b4cbd2ec44c8 100644 --- a/tests/ui/ReportActionAvatarsTest.tsx +++ b/tests/ui/ReportActionAvatarsTest.tsx @@ -112,6 +112,7 @@ const reportChatDM = { chatType: undefined, reportID: 'CHAT_REPORT_DM', policyID: personalPolicy.id, + type: CONST.REPORT.TYPE.CHAT, }; const reportPreviewAction = { @@ -156,6 +157,8 @@ const iouDMReport = { chatReportID: reportChatDM.reportID, parentReportActionID: reportPreviewDMAction.reportActionID, policyID: personalPolicy.id, + type: CONST.REPORT.TYPE.IOU, + chatType: undefined, }; const iouDMSingleExpenseReport = {