Skip to content

Commit 3a8495f

Browse files
Update useParticipants to listen for any Participant's info changes (#980)
1 parent 6609b09 commit 3a8495f

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

.changeset/calm-rivers-behave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@livekit/components-core': patch
3+
---
4+
5+
update useParticipants to listen for any Participant's info changes

packages/core/src/helper/eventGroups.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export const allRemoteParticipantRoomEvents = [
1111
RoomEvent.ParticipantDisconnected,
1212
RoomEvent.ParticipantPermissionsChanged,
1313
RoomEvent.ParticipantMetadataChanged,
14+
RoomEvent.ParticipantNameChanged,
15+
RoomEvent.ParticipantAttributesChanged,
1416

1517
RoomEvent.TrackMuted,
1618
RoomEvent.TrackUnmuted,

packages/react/src/prefabs/ControlBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface ControlBarProps extends React.HTMLAttributes<HTMLDivElement> {
3030
controls?: ControlBarControls;
3131
/**
3232
* If `true`, the user's device choices will be persisted.
33-
* This will enables the user to have the same device choices when they rejoin the room.
33+
* This will enable the user to have the same device choices when they rejoin the room.
3434
* @defaultValue true
3535
* @alpha
3636
*/

packages/react/src/prefabs/PreJoin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export function usePreviewDevice<T extends LocalVideoTrack | LocalAudioTrack>(
203203
*
204204
* @remarks
205205
* This component is independent of the `LiveKitRoom` component and should not be nested within it.
206-
* Because it only access the local media tracks this component is self contained and works without connection to the LiveKit server.
206+
* Because it only accesses the local media tracks this component is self-contained and works without connection to the LiveKit server.
207207
*
208208
* @example
209209
* ```tsx

packages/react/src/prefabs/VideoConference.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface VideoConferenceProps extends React.HTMLAttributes<HTMLDivElemen
4343
* @remarks
4444
* The component is implemented with other LiveKit components like `FocusContextProvider`,
4545
* `GridLayout`, `ControlBar`, `FocusLayoutContainer` and `FocusLayout`.
46-
* You can use this components as a starting point for your own custom video conferencing application.
46+
* You can use these components as a starting point for your own custom video conferencing application.
4747
*
4848
* @example
4949
* ```tsx

0 commit comments

Comments
 (0)