Ensure editor decorations for comments are removed in the old review panel (#23239)

GitOrigin-RevId: d41d9b9701fc792c0190f4648ce9c4ddf035a967
This commit is contained in:
Domagoj Kriskovic
2025-01-29 15:33:19 +01:00
committed by Copybot
parent 3a918a58e5
commit 461818810c
@@ -872,7 +872,9 @@ function useReviewPanelState(): ReviewPanel.ReviewPanelState {
return { ...prevState, [threadId]: thread }
})
setResolvedThreadIds(prevState => ({ ...prevState, [threadId]: true }))
dispatchReviewPanelEvent('comment:resolve_threads', [threadId])
setTimeout(() => {
dispatchReviewPanelEvent('comment:resolve_threads', [threadId])
})
},
[getThread]
)
@@ -916,7 +918,9 @@ function useReviewPanelState(): ReviewPanel.ReviewPanelState {
setResolvedThreadIds(({ [threadId]: _, ...resolvedThreadIds }) => {
return resolvedThreadIds
})
dispatchReviewPanelEvent('comment:unresolve_thread', threadId)
setTimeout(() => {
dispatchReviewPanelEvent('comment:unresolve_thread', threadId)
})
},
[getThread]
)