Message List: Fix sending animation after forwarding

This commit is contained in:
Alexander Zinchuk 2022-01-24 04:41:40 +01:00
parent 342ca92553
commit a9e699e82f

View File

@ -290,10 +290,8 @@ const MessageList: FC<OwnProps & StateProps> = ({
const { height: windowHeight } = useWindowSize(); const { height: windowHeight } = useWindowSize();
useEffect(() => { useEffect(() => {
if (isReady) { containerRef.current!.dataset.normalHeight = String(containerRef.current!.offsetHeight);
containerRef.current!.dataset.normalHeight = String(containerRef.current!.offsetHeight); }, [windowHeight, canPost]);
}
}, [windowHeight, isReady, canPost]);
// Initial message loading // Initial message loading
useEffect(() => { useEffect(() => {