Fix: Emoji animations are not being turned off by using the slider in settings.

This commit is contained in:
André Möller 2024-07-10 16:40:16 -03:00
parent c14b1510c2
commit da3d8140da

View File

@ -85,7 +85,7 @@ const EmojiRain = ({ reactions }) => {
}, [EMOJI_RAIN_ENABLED, animations, isAnimating]); }, [EMOJI_RAIN_ENABLED, animations, isAnimating]);
useEffect(() => { useEffect(() => {
if (isAnimating) { if (isAnimating && animations !== false) {
reactions.forEach((reaction) => { reactions.forEach((reaction) => {
const currentTime = new Date().getTime(); const currentTime = new Date().getTime();
const secondsSinceCreated = (currentTime - reaction.creationDate.getTime()) / 1000; const secondsSinceCreated = (currentTime - reaction.creationDate.getTime()) / 1000;