Message: Fix appearance order (#6835)
This commit is contained in:
parent
43b6ddd426
commit
ac07a2242b
@ -309,10 +309,8 @@ const ActionMessage = ({
|
||||
return;
|
||||
}
|
||||
|
||||
const timeout = setTimeout(markShown, appearanceOrder * MESSAGE_APPEARANCE_DELAY);
|
||||
return () => {
|
||||
clearTimeout(timeout);
|
||||
};
|
||||
// Keep as is for now to avoid breaking appearance order
|
||||
setTimeout(markShown, appearanceOrder * MESSAGE_APPEARANCE_DELAY);
|
||||
}, [appearanceOrder, noAppearanceAnimation]);
|
||||
|
||||
const { ref: refWithTransition } = useShowTransition({
|
||||
|
||||
@ -530,10 +530,8 @@ const Message = ({
|
||||
return;
|
||||
}
|
||||
|
||||
const timeout = setTimeout(markShown, appearanceOrder * MESSAGE_APPEARANCE_DELAY);
|
||||
return () => {
|
||||
clearTimeout(timeout);
|
||||
};
|
||||
// Keep as is for now to avoid breaking appearance order
|
||||
setTimeout(markShown, appearanceOrder * MESSAGE_APPEARANCE_DELAY);
|
||||
}, [appearanceOrder, noAppearanceAnimation]);
|
||||
|
||||
useShowTransition({
|
||||
|
||||
@ -92,8 +92,9 @@ const SenderGroupContainer: FC<OwnProps & StateProps> = ({
|
||||
return;
|
||||
}
|
||||
|
||||
// Keep as is for now to avoid breaking appearance order
|
||||
setTimeout(markShown, appearanceOrder * MESSAGE_APPEARANCE_DELAY);
|
||||
}, [appearanceOrder, markShown, noAppearanceAnimation]);
|
||||
}, [appearanceOrder, noAppearanceAnimation]);
|
||||
|
||||
const shouldPreferOriginSender = forwardInfo
|
||||
&& (isChatWithSelf || isRepliesChat || isAnonymousForwards || !messageSender);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user