diff --git a/.changeset/calm-rivers-behave.md b/.changeset/calm-rivers-behave.md new file mode 100644 index 000000000..af5694b6f --- /dev/null +++ b/.changeset/calm-rivers-behave.md @@ -0,0 +1,5 @@ +--- +'@livekit/components-core': patch +--- + +update useParticipants to listen for any Participant's info changes diff --git a/packages/core/src/helper/eventGroups.ts b/packages/core/src/helper/eventGroups.ts index 67c5e25ed..bdab54b46 100644 --- a/packages/core/src/helper/eventGroups.ts +++ b/packages/core/src/helper/eventGroups.ts @@ -11,6 +11,8 @@ export const allRemoteParticipantRoomEvents = [ RoomEvent.ParticipantDisconnected, RoomEvent.ParticipantPermissionsChanged, RoomEvent.ParticipantMetadataChanged, + RoomEvent.ParticipantNameChanged, + RoomEvent.ParticipantAttributesChanged, RoomEvent.TrackMuted, RoomEvent.TrackUnmuted, diff --git a/packages/react/src/prefabs/ControlBar.tsx b/packages/react/src/prefabs/ControlBar.tsx index a6662c321..8cc21f11b 100644 --- a/packages/react/src/prefabs/ControlBar.tsx +++ b/packages/react/src/prefabs/ControlBar.tsx @@ -30,7 +30,7 @@ export interface ControlBarProps extends React.HTMLAttributes { controls?: ControlBarControls; /** * If `true`, the user's device choices will be persisted. - * This will enables the user to have the same device choices when they rejoin the room. + * This will enable the user to have the same device choices when they rejoin the room. * @defaultValue true * @alpha */ diff --git a/packages/react/src/prefabs/PreJoin.tsx b/packages/react/src/prefabs/PreJoin.tsx index e81343355..7a1bde3dc 100644 --- a/packages/react/src/prefabs/PreJoin.tsx +++ b/packages/react/src/prefabs/PreJoin.tsx @@ -203,7 +203,7 @@ export function usePreviewDevice( * * @remarks * This component is independent of the `LiveKitRoom` component and should not be nested within it. - * Because it only access the local media tracks this component is self contained and works without connection to the LiveKit server. + * Because it only accesses the local media tracks this component is self-contained and works without connection to the LiveKit server. * * @example * ```tsx diff --git a/packages/react/src/prefabs/VideoConference.tsx b/packages/react/src/prefabs/VideoConference.tsx index 8ece8143e..62af5d61f 100644 --- a/packages/react/src/prefabs/VideoConference.tsx +++ b/packages/react/src/prefabs/VideoConference.tsx @@ -43,7 +43,7 @@ export interface VideoConferenceProps extends React.HTMLAttributes