Major refactor to support various state problems.

This commit is contained in:
Half-Shot
2024-10-29 16:19:01 +00:00
parent cd73ad8794
commit 5a5c1bedfe
5 changed files with 150 additions and 58 deletions

View File

@@ -110,7 +110,11 @@ export function RaiseHandToggleButton({
.then((reaction) => {
logger.debug("Sent raise hand event", reaction.event_id);
setMyReactionId(reaction.event_id);
addRaisedHand(userId, parentEventId, new Date());
addRaisedHand(userId, {
membershipEventId: parentEventId,
reactionEventId: reaction.event_id,
time: new Date(),
});
})
.catch((e) => {
logger.error("Failed to send reaction event", e);