We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e456782 commit fb502a6Copy full SHA for fb502a6
1 file changed
src/hooks/useCall.ts
@@ -42,11 +42,10 @@ 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,
49
- useCallback((state) => state ?? participants ?? new Map(), [participants]),
+ useCallback((state) => state ?? call?.participants ?? new Map(), []),
50
51
};
52
0 commit comments