From 07d345191b88307240a60f4985f2322c0e08ae0e Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Mon, 28 Oct 2024 22:24:20 +0000 Subject: [PATCH] Fix timestamp calculation on relaod. --- src/useReactions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useReactions.tsx b/src/useReactions.tsx index 1d09e112..2aa8727a 100644 --- a/src/useReactions.tsx +++ b/src/useReactions.tsx @@ -107,7 +107,7 @@ export const ReactionsProvider = ({ if (reaction && reaction.getType() === EventType.Reaction) { const content = reaction.getContent() as ReactionEventContent; if (content?.["m.relates_to"]?.key === "🖐️") { - addRaisedHand(m.sender, new Date(m.createdTs())); + addRaisedHand(m.sender, new Date(reaction.localTimestamp)); if (m.sender === room.client.getUserId()) { setMyReactionId(eventId); }