Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update useParticipants to listen for any Participant's info changes #980

Merged
merged 2 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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