Open source video conferencing app powered by LiveKit. Built with Django and React.
⚡️(frontend) narrow chat participant list update events
lebaudantoineacb583b14f5d
diff --git a/src/frontend/src/features/rooms/livekit/prefabs/Chat.tsx b/src/frontend/src/features/rooms/livekit/prefabs/Chat.tsxindex aa593b5e..3ff261e1 100644--- a/src/frontend/src/features/rooms/livekit/prefabs/Chat.tsx+++ b/src/frontend/src/features/rooms/livekit/prefabs/Chat.tsx@@ -76,7 +76,13 @@ export function Chat({ ...props }: ChatProps) {})// Use useParticipants hook to trigger a re-render when the participant list changes.- const participants = useParticipants()+ const participants = useParticipants({+ updateOnlyOn: [+ RoomEvent.ParticipantAttributesChanged,+ RoomEvent.ParticipantNameChanged,+ RoomEvent.ParticipantMetadataChanged,+ ],+ })const lastReadMsgAt = React.useRef<ChatMessage['timestamp']>(0)const previousMessageCount = React.useRef(0)