From b309f91095b5a8fa7bd17de68cf07f3e47e447da Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Fri, 20 Sep 2024 17:01:05 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A1(frontend)=20highlight=20technical?= =?UTF-8?q?=20debt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We should use participant attributes, rather than metadata, to store hand status (raised/lowered). However, the useParticipantInfo hook is currently not suited for this, as it does not refresh when attributes change. --- src/frontend/src/features/rooms/livekit/hooks/useRaisedHand.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/features/rooms/livekit/hooks/useRaisedHand.tsx b/src/frontend/src/features/rooms/livekit/hooks/useRaisedHand.tsx index a2539bb0..1baabdb1 100644 --- a/src/frontend/src/features/rooms/livekit/hooks/useRaisedHand.tsx +++ b/src/frontend/src/features/rooms/livekit/hooks/useRaisedHand.tsx @@ -7,6 +7,7 @@ type useRaisedHandProps = { } export function useRaisedHand({ participant }: useRaisedHandProps) { + // fixme - refactor this part to rely on attributes const { metadata } = useParticipantInfo({ participant }) const parsedMetadata = JSON.parse(metadata || '{}')