Skip to content

Commit

Permalink
Update useParticipants to listen for any Participant's info changes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lebaudantoine authored Sep 26, 2024
1 parent 6609b09 commit 3a8495f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-rivers-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@livekit/components-core': patch
---

update useParticipants to listen for any Participant's info changes
2 changes: 2 additions & 0 deletions packages/core/src/helper/eventGroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export const allRemoteParticipantRoomEvents = [
RoomEvent.ParticipantDisconnected,
RoomEvent.ParticipantPermissionsChanged,
RoomEvent.ParticipantMetadataChanged,
RoomEvent.ParticipantNameChanged,
RoomEvent.ParticipantAttributesChanged,

RoomEvent.TrackMuted,
RoomEvent.TrackUnmuted,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/prefabs/ControlBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface ControlBarProps extends React.HTMLAttributes<HTMLDivElement> {
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
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/prefabs/PreJoin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export function usePreviewDevice<T extends LocalVideoTrack | LocalAudioTrack>(
*
* @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
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/prefabs/VideoConference.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface VideoConferenceProps extends React.HTMLAttributes<HTMLDivElemen
* @remarks
* The component is implemented with other LiveKit components like `FocusContextProvider`,
* `GridLayout`, `ControlBar`, `FocusLayoutContainer` and `FocusLayout`.
* You can use this components as a starting point for your own custom video conferencing application.
* You can use these components as a starting point for your own custom video conferencing application.
*
* @example
* ```tsx
Expand Down

0 comments on commit 3a8495f

Please sign in to comment.