💡(frontend) highlight technical debt

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.
This commit is contained in:
lebaudantoine
2024-09-20 17:01:05 +02:00
committed by aleb_the_flash
parent c50a749293
commit b309f91095

View File

@@ -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 || '{}')