mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 20:26:19 +02:00
fix useParticipants incorrectly returning an array when a map is expected
This commit is contained in:
parent
9dddaf732c
commit
e06d76e3f7
@ -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]),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user