Revert "Try again to fix calParticipants"

This reverts commit c45ad3063f97cad6989ec3fe44dacf6f0904a4e1.
This commit is contained in:
David Langley 2025-08-27 22:04:14 +01:00
parent db50519cca
commit f67825cff3

View File

@ -42,11 +42,10 @@ 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 ?? participants ?? new Map(), [participants]),
useCallback((state) => state ?? call?.participants ?? new Map(), [call]),
);
};