Composer: Delay only for shown and forwarding message (#4200)
This commit is contained in:
parent
12a825f1dc
commit
332f07ab75
@ -102,8 +102,8 @@ const ComposerEmbeddedMessage: FC<OwnProps & StateProps> = ({
|
|||||||
|| (sender && forwardedMessagesCount),
|
|| (sender && forwardedMessagesCount),
|
||||||
);
|
);
|
||||||
const canAnimate = useAsyncRendering(
|
const canAnimate = useAsyncRendering(
|
||||||
[isForwarding],
|
[isShown, isForwarding],
|
||||||
isForwarding ? FORWARD_RENDERING_DELAY : undefined,
|
isShown && isForwarding ? FORWARD_RENDERING_DELAY : undefined,
|
||||||
);
|
);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user