Add more logs for call disposition

This commit is contained in:
Jamie Kyle 2023-01-11 12:04:03 -08:00 committed by GitHub
parent 81e1357723
commit 81fc9ff94d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 2 deletions

View file

@ -1942,7 +1942,18 @@ export class CallingClass {
if (call.state === CallState.Accepted) {
acceptedTime = acceptedTime || Date.now();
} else if (call.state === CallState.Ended) {
await this.addCallHistoryForEndedCall(conversation, call, acceptedTime);
try {
await this.addCallHistoryForEndedCall(
conversation,
call,
acceptedTime
);
} catch (error) {
log.error(
'Failed to add call history for ended call',
Errors.toLogFormat(error)
);
}
this.stopDeviceReselectionTimer();
this.lastMediaDeviceSettings = undefined;
delete this.callsByConversation[conversation.id];