diff --git a/src/frontend/src/features/rooms/livekit/prefabs/Chat.tsx b/src/frontend/src/features/rooms/livekit/prefabs/Chat.tsx index 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(0) const previousMessageCount = React.useRef(0)