Skip to content

Commit

Permalink
iPhones - sometimes discussion messages appear only after touching th…
Browse files Browse the repository at this point in the history
…e screen
  • Loading branch information
roienatan committed Nov 15, 2023
1 parent b2d02ed commit e231882
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e231882

Please sign in to comment.