From 3e1e08c883f875beb0536d56e6653f7b6e365081 Mon Sep 17 00:00:00 2001 From: Robin Date: Fri, 8 Nov 2024 13:15:28 -0500 Subject: [PATCH] Fix type error --- src/useReactions.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/useReactions.tsx b/src/useReactions.tsx index 9111d5a9..15b7b714 100644 --- a/src/useReactions.tsx +++ b/src/useReactions.tsx @@ -182,7 +182,7 @@ export const ReactionsProvider = ({ // This effect handles any *live* reaction/redactions in the room. useEffect(() => { - const reactionTimeouts = new Set(); + const reactionTimeouts = new Set(); const handleReactionEvent = (event: MatrixEvent): void => { if (event.isSending()) { // Skip any events that are still sending. @@ -245,7 +245,7 @@ export const ReactionsProvider = ({ // We've still got a reaction from this user, ignore it to prevent spamming return reactions; } - const timeout = setTimeout(() => { + const timeout = window.setTimeout(() => { // Clear the reaction after some time. setReactions(({ [sender]: _unused, ...remaining }) => remaining); reactionTimeouts.delete(timeout);