mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 20:26:19 +02:00
Revert "Try with no dependencies"
This reverts commit fb502a68a08bd0227ace807fdaf394ed8719d92a.
This commit is contained in:
parent
3900a1e20d
commit
f396b28c68
@ -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(), []),
|
||||
useCallback((state) => state ?? participants ?? new Map(), [participants]),
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user