diff --git a/src/useReactions.tsx b/src/useReactions.tsx index 7f11b141..f4aa92d7 100644 --- a/src/useReactions.tsx +++ b/src/useReactions.tsx @@ -301,6 +301,8 @@ export const ReactionsProvider = ({ room.off(MatrixRoomEvent.Redaction, handleReactionEvent); room.off(MatrixRoomEvent.LocalEchoUpdated, handleReactionEvent); reactionTimeouts.forEach((t) => clearTimeout(t)); + // If we're clearing timeouts, we also clear all reactions. + setReactions({}); }; }, [room, addRaisedHand, removeRaisedHand, memberships, raisedHands]);