diff --git a/src/pages/common/components/ChatComponent/components/ChatContent/ChatContent.tsx b/src/pages/common/components/ChatComponent/components/ChatContent/ChatContent.tsx index e047d3c936..b7f694de02 100644 --- a/src/pages/common/components/ChatComponent/components/ChatContent/ChatContent.tsx +++ b/src/pages/common/components/ChatComponent/components/ChatContent/ChatContent.tsx @@ -100,10 +100,10 @@ const ChatContent: ForwardRefRenderFunction< const forceUpdate = useForceUpdate(); useEffect(() => { - if (messages) { + if (messages || dateList) { forceUpdate(); } - }, [messages]); + }, [messages, dateList]); const [highlightedMessageId, setHighlightedMessageId] = useState( () => (typeof messageIdParam === "string" && messageIdParam) || null,