Log pending users for call link calls
This commit is contained in:
parent
1020857c78
commit
77e79e8da5
1 changed files with 25 additions and 1 deletions
|
@ -3293,13 +3293,37 @@ export function reducer(
|
|||
}
|
||||
}
|
||||
|
||||
let callLinkLog = '';
|
||||
if (callMode === CallMode.Adhoc) {
|
||||
const currentPendingAcis = new Set(
|
||||
existingCall?.peekInfo?.pendingAcis ?? []
|
||||
);
|
||||
const nextPendingAcis = new Set(peekInfo?.pendingAcis ?? []);
|
||||
const pendingAcisLeft = new Array<AciString>();
|
||||
const pendingAcisJoined = new Array<AciString>();
|
||||
for (const aci of currentPendingAcis) {
|
||||
if (!nextPendingAcis.has(aci)) {
|
||||
pendingAcisLeft.push(aci);
|
||||
}
|
||||
}
|
||||
for (const aci of nextPendingAcis) {
|
||||
if (!currentPendingAcis.has(aci)) {
|
||||
pendingAcisJoined.push(aci);
|
||||
}
|
||||
}
|
||||
callLinkLog =
|
||||
`joinPending={${pendingAcisJoined.join(', ')}} ` +
|
||||
`leftPending={${pendingAcisLeft.join(', ')}}`;
|
||||
}
|
||||
|
||||
log.info(
|
||||
'groupCallStateChange:',
|
||||
conversationId,
|
||||
GroupCallConnectionState[connectionState],
|
||||
GroupCallJoinState[joinState],
|
||||
`joined={${membersJoined.join(', ')}}`,
|
||||
`left={${membersLeft.join(', ')}}`
|
||||
`left={${membersLeft.join(', ')}}`,
|
||||
callLinkLog
|
||||
);
|
||||
|
||||
const newPeekInfo = peekInfo ||
|
||||
|
|
Loading…
Reference in a new issue