Merge pull request #20886 from overleaf/dp-overview-file-counts

Check that thread has messages in overview comment count

GitOrigin-RevId: 8499f837a016256c5ca615172b5c53a7f2e7c6b5
This commit is contained in:
David 2024-10-08 13:23:40 +01:00 committed by Copybot
parent d9211998de
commit 037529f243

View file

@ -48,7 +48,7 @@ export const ReviewPanelOverviewFile: FC<{
const unresolvedComments = useMemo(() => {
return ranges.comments.filter(comment => {
const thread = threads?.[comment.op.t]
return thread && !thread.resolved
return thread && thread.messages.length > 0 && !thread.resolved
})
}, [ranges.comments, threads])