Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

🔥(frontend) delete dead code in emoji reaction component

lebaudantoinec576a7566034
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<Reaction[]>([])
-// 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 <></>
-// }