Message List: Fix sending animation after forwarding
This commit is contained in:
parent
342ca92553
commit
a9e699e82f
@ -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(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user