File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments