diff --git a/src/components/middle/MessageList.tsx b/src/components/middle/MessageList.tsx index c1d8c67c..6de7081d 100644 --- a/src/components/middle/MessageList.tsx +++ b/src/components/middle/MessageList.tsx @@ -290,10 +290,8 @@ const MessageList: FC = ({ const { height: windowHeight } = useWindowSize(); useEffect(() => { - if (isReady) { - containerRef.current!.dataset.normalHeight = String(containerRef.current!.offsetHeight); - } - }, [windowHeight, isReady, canPost]); + containerRef.current!.dataset.normalHeight = String(containerRef.current!.offsetHeight); + }, [windowHeight, canPost]); // Initial message loading useEffect(() => {