From e231882617effffa0278e2161de2731ed5cd46d5 Mon Sep 17 00:00:00 2001 From: Roie Natan Date: Wed, 15 Nov 2023 17:54:08 -0500 Subject: [PATCH] iPhones - sometimes discussion messages appear only after touching the screen --- .../ChatComponent/components/ChatContent/ChatContent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,