diff --git a/app/src/components/pages/chat.tsx b/app/src/components/pages/chat.tsx index 58d7288..6ae69f0 100644 --- a/app/src/components/pages/chat.tsx +++ b/app/src/components/pages/chat.tsx @@ -35,12 +35,14 @@ export default function ChatPage(props: any) { const { id } = useParams(); const context = useAppContext(); + let firstLoad = true; useEffect(() => { if (props.share || !context.currentChat.chatLoadedAt) { return; } - const shouldScroll = (Date.now() - context.currentChat.chatLoadedAt) > 5000; + const shouldScroll = (Date.now() - context.currentChat.chatLoadedAt) > 5000 || firstLoad; + firstLoad = false; if (!shouldScroll) { return;