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();
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(() => {