We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e06d76e commit c45ad30Copy full SHA for c45ad30
src/hooks/useCall.ts
@@ -42,10 +42,11 @@ export const useConnectionState = (call: Call | null): ConnectionState =>
42
);
43
44
export const useParticipants = (call: Call | null): Map<RoomMember, Set<string>> => {
45
+ const participants = call?.participants;
46
return useTypedEventEmitterState(
47
call ?? undefined,
48
CallEvent.Participants,
- useCallback((state) => state ?? call?.participants ?? new Map(), [call]),
49
+ useCallback((state) => state ?? participants ?? new Map(), [participants]),
50
51
};
52
0 commit comments