💡(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:
committed by
aleb_the_flash
parent
c50a749293
commit
b309f91095
@@ -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 || '{}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user