(fix): joining a call while already being in a call wouldn't reset the call state
(qol): format
This commit is contained in:
parent
be26e486d4
commit
4dbf48b3f9
8 changed files with 85 additions and 50 deletions
|
|
@ -7,12 +7,15 @@ export default function TopBar() {
|
|||
const room = useCall((state) => state.room);
|
||||
const view = useCall((state) => state.view);
|
||||
|
||||
const userIds = Array.from(room.remoteParticipants.values(), (participant) => {
|
||||
const participantId = Number(participant.identity);
|
||||
return Number.isInteger(participantId) && participantId > 0
|
||||
? participantId
|
||||
: null;
|
||||
}).filter((participantId): participantId is number => participantId != null);
|
||||
const userIds = Array.from(
|
||||
room.remoteParticipants.values(),
|
||||
(participant) => {
|
||||
const participantId = Number(participant.identity);
|
||||
return Number.isInteger(participantId) && participantId > 0
|
||||
? participantId
|
||||
: null;
|
||||
},
|
||||
).filter((participantId): participantId is number => participantId != null);
|
||||
const userIdsKey = userIds.join(",");
|
||||
|
||||
const [users, setUsers] = useState<User[]>([]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue