diff --git a/bigbluebutton-html5/imports/ui/components/emoji-rain/component.jsx b/bigbluebutton-html5/imports/ui/components/emoji-rain/component.jsx index 180e37e921..0860915141 100644 --- a/bigbluebutton-html5/imports/ui/components/emoji-rain/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/emoji-rain/component.jsx @@ -87,7 +87,10 @@ const EmojiRain = ({ reactions }) => { useEffect(() => { if (isAnimating) { reactions.forEach((reaction) => { - if (Date() == reaction.creationDate && (reaction.reaction !== 'none')) { + //if (Date() == reaction.creationDate && (reaction.reaction !== 'none')) { + const currentTime = new Date().getTime(); + const secondsSinceCreated = (currentTime - reaction.creationDate.getTime()) / 1000; + if (secondsSinceCreated <= 1 && (reaction.reaction !== 'none')) { createEmojiRain(reaction.reaction); } });