Composer: Fix hook deps for animation (#4191)

This commit is contained in:
Alexander Zinchuk 2024-01-18 18:18:39 +01:00
parent b94999c204
commit ce15975b42

View File

@ -102,7 +102,7 @@ const ComposerEmbeddedMessage: FC<OwnProps & StateProps> = ({
|| (sender && forwardedMessagesCount), || (sender && forwardedMessagesCount),
); );
const canAnimate = useAsyncRendering( const canAnimate = useAsyncRendering(
[isShown], [isForwarding],
isForwarding ? FORWARD_RENDERING_DELAY : undefined, isForwarding ? FORWARD_RENDERING_DELAY : undefined,
); );