mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 20:26:19 +02:00
Try again to fix calParticipants
This commit is contained in:
parent
e06d76e3f7
commit
c45ad3063f
@ -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(), [call]),
|
||||
useCallback((state) => state ?? participants ?? new Map(), [participants]),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user