Log pending users for call link calls

This commit is contained in:
ayumi-signal 2024-09-23 06:22:25 -07:00 committed by GitHub
parent 1020857c78
commit 77e79e8da5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 ||