Lint tests

This commit is contained in:
Half-Shot
2024-10-28 17:44:17 +00:00
parent ba921f8c67
commit 9d01e8c129
2 changed files with 166 additions and 3 deletions

View File

@@ -131,8 +131,7 @@ export const ReactionsProvider = ({
if (content?.["m.relates_to"].key === "🖐️") {
addRaisedHand(sender, new Date(event.localTimestamp));
}
}
if (event.getType() === EventType.RoomRedaction && event.getSender()) {
} else if (event.getType() === EventType.RoomRedaction) {
// TODO: check target of redaction event
removeRaisedHand(sender);
}
@@ -145,7 +144,7 @@ export const ReactionsProvider = ({
room.off(MatrixRoomEvent.Timeline, handleReactionEvent);
room.off(MatrixRoomEvent.Redaction, handleReactionEvent);
};
}, [room, raisedHands, addRaisedHand, removeRaisedHand]);
}, [room, addRaisedHand, removeRaisedHand]);
return (
<ReactionsContext.Provider