diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 690cfdafd92df..f342ee61f85c7 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -5274,6 +5274,16 @@ function shouldReportBeInOptionList({ if (isSelfDM(report)) { return includeSelfDM; } + const parentReportAction = ReportActionsUtils.getParentReportAction(report); + + // Hide chat threads where the parent message is pending removal + if ( + !isEmptyObject(parentReportAction) && + ReportActionsUtils.isPendingRemove(parentReportAction) && + ReportActionsUtils.isThreadParentMessage(parentReportAction, report?.reportID ?? '') + ) { + return false; + } return true; }