fix useParticipants incorrectly returning an array when a map is expected

This commit is contained in:
David Langley
2025-08-27 14:50:45 +01:00
parent 9dddaf732c
commit e06d76e3f7
+1 -1
View File
@@ -45,7 +45,7 @@ export const useParticipants = (call: Call | null): Map<RoomMember, Set<string>>
return useTypedEventEmitterState(
call ?? undefined,
CallEvent.Participants,
useCallback((state) => state ?? call?.participants ?? [], [call]),
useCallback((state) => state ?? call?.participants ?? new Map(), [call]),
);
};