Skip to content

Commit 3e1e08c

Browse files
committed
Fix type error
1 parent 6645a6e commit 3e1e08c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/useReactions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export const ReactionsProvider = ({
182182

183183
// This effect handles any *live* reaction/redactions in the room.
184184
useEffect(() => {
185-
const reactionTimeouts = new Set<NodeJS.Timeout>();
185+
const reactionTimeouts = new Set<number>();
186186
const handleReactionEvent = (event: MatrixEvent): void => {
187187
if (event.isSending()) {
188188
// Skip any events that are still sending.
@@ -245,7 +245,7 @@ export const ReactionsProvider = ({
245245
// We've still got a reaction from this user, ignore it to prevent spamming
246246
return reactions;
247247
}
248-
const timeout = setTimeout(() => {
248+
const timeout = window.setTimeout(() => {
249249
// Clear the reaction after some time.
250250
setReactions(({ [sender]: _unused, ...remaining }) => remaining);
251251
reactionTimeouts.delete(timeout);

0 commit comments

Comments
 (0)