Composer: Delay only for shown and forwarding message (#4200)

This commit is contained in:
Alexander Zinchuk 2024-02-06 16:48:18 +01:00
parent 12a825f1dc
commit 332f07ab75

View File

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