From c576a75660342a4740d057fceddcc993db5b0f97 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Thu, 27 Feb 2025 23:41:46 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5(frontend)=20delete=20dead=20code?= =?UTF-8?q?=20in=20emoji=20reaction=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove unused code in emoji reaction feature that was mistakenly introduced in previous commits. Clean up codebase to improve clarity and maintenance. --- .../components/controls/ReactionsToggle.tsx | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/src/frontend/src/features/rooms/livekit/components/controls/ReactionsToggle.tsx b/src/frontend/src/features/rooms/livekit/components/controls/ReactionsToggle.tsx index 90097fab..1d480984 100644 --- a/src/frontend/src/features/rooms/livekit/components/controls/ReactionsToggle.tsx +++ b/src/frontend/src/features/rooms/livekit/components/controls/ReactionsToggle.tsx @@ -149,39 +149,3 @@ export const ReactionsToggle = () => { ) } - -// export const ReactionsToolBar = () => { -// const { t } = useTranslation('rooms', { keyPrefix: 'controls.reactions' }) -// -// const [reactions, setReactions] = useState([]) -// const instanceIdRef = useRef(0) -// const room = useRoomContext() -// -// const sendReaction = async (emoji: string) => { -// const encoder = new TextEncoder() -// const payload: NotificationPayload = { -// type: NotificationType.ReactionReceived, -// data: { -// emoji: emoji, -// }, -// } -// const data = encoder.encode(JSON.stringify(payload)) -// await room.localParticipant.publishData(data, { reliable: true }) -// -// const newReaction = { -// id: instanceIdRef.current++, -// emoji, -// participant: room.localParticipant, -// } -// setReactions((prev) => [...prev, newReaction]) -// -// // Remove this reaction after animation -// setTimeout(() => { -// setReactions((prev) => -// prev.filter((instance) => instance.id !== newReaction.id) -// ) -// }, ANIMATION_DURATION) -// } -// -// return <> -// }