mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 20:26:19 +02:00
Try with no dependencies
This commit is contained in:
parent
e456782efd
commit
fb502a68a0
@ -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(), []),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user