Clear reactions if we're clearing timeouts.

This commit is contained in:
Half-Shot
2024-11-08 13:14:45 +00:00
parent e97c779ee4
commit 90fa6d02d7

View File

@@ -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]);