Revert "Try with no dependencies"

This reverts commit fb502a68a08bd0227ace807fdaf394ed8719d92a.
This commit is contained in:
David Langley 2025-08-27 22:03:57 +01:00
parent 3900a1e20d
commit f396b28c68

View File

@ -42,10 +42,11 @@ export const useConnectionState = (call: Call | null): ConnectionState =>
);
export const useParticipants = (call: Call | null): Map<RoomMember, Set<string>> => {
const participants = call?.participants;
return useTypedEventEmitterState(
call ?? undefined,
CallEvent.Participants,
useCallback((state) => state ?? call?.participants ?? new Map(), []),
useCallback((state) => state ?? participants ?? new Map(), [participants]),
);
};