Update bigbluebutton-html5/imports/ui/components/emoji-rain/component.jsx

This commit is contained in:
Ramón Souza 2023-10-18 09:28:30 -03:00 committed by GitHub
parent 20b4ffe7dd
commit 577ed647d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,6 @@ const EmojiRain = ({ reactions }) => {
useEffect(() => { useEffect(() => {
if (isAnimating) { if (isAnimating) {
reactions.forEach((reaction) => { reactions.forEach((reaction) => {
//if (Date() == reaction.creationDate && (reaction.reaction !== 'none')) {
const currentTime = new Date().getTime(); const currentTime = new Date().getTime();
const secondsSinceCreated = (currentTime - reaction.creationDate.getTime()) / 1000; const secondsSinceCreated = (currentTime - reaction.creationDate.getTime()) / 1000;
if (secondsSinceCreated <= 1 && (reaction.reaction !== 'none')) { if (secondsSinceCreated <= 1 && (reaction.reaction !== 'none')) {