Fix timestamp calculation on relaod.

This commit is contained in:
Half-Shot 2024-10-28 22:24:20 +00:00
parent 198859db08
commit 07d345191b

View File

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