Add more logging to addCallHistory
This commit is contained in:
parent
260c1fd9df
commit
85c217e803
1 changed files with 21 additions and 3 deletions
|
@ -3225,11 +3225,25 @@ export class ConversationModel extends window.Backbone
|
||||||
|
|
||||||
switch (callHistoryDetails.callMode) {
|
switch (callHistoryDetails.callMode) {
|
||||||
case CallMode.Direct: {
|
case CallMode.Direct: {
|
||||||
|
const {
|
||||||
|
callId,
|
||||||
|
wasIncoming,
|
||||||
|
wasVideoCall,
|
||||||
|
wasDeclined,
|
||||||
|
acceptedTime,
|
||||||
|
endedTime,
|
||||||
|
} = callHistoryDetails;
|
||||||
log.info(
|
log.info(
|
||||||
`addCallHistory: Adding direct call to history (Call ID ${callHistoryDetails.callId})`
|
`addCallHistory: Call ID: ${callId}, ` +
|
||||||
|
'Direct, ' +
|
||||||
|
`Incoming: ${wasIncoming}, ` +
|
||||||
|
`Video: ${wasVideoCall}, ` +
|
||||||
|
`Declined: ${wasDeclined}, ` +
|
||||||
|
`Accepted: ${acceptedTime}, ` +
|
||||||
|
`Ended: ${endedTime}`
|
||||||
);
|
);
|
||||||
const resolvedTime =
|
|
||||||
callHistoryDetails.acceptedTime ?? callHistoryDetails.endedTime;
|
const resolvedTime = acceptedTime ?? endedTime;
|
||||||
assertDev(resolvedTime, 'Direct call must have accepted or ended time');
|
assertDev(resolvedTime, 'Direct call must have accepted or ended time');
|
||||||
timestamp = resolvedTime;
|
timestamp = resolvedTime;
|
||||||
unread =
|
unread =
|
||||||
|
@ -3277,6 +3291,10 @@ export class ConversationModel extends window.Backbone
|
||||||
`addCallHistory: Found existing call history message (Call ID ${callHistoryDetails.callId}, Message ID: ${messageId})`
|
`addCallHistory: Found existing call history message (Call ID ${callHistoryDetails.callId}, Message ID: ${messageId})`
|
||||||
);
|
);
|
||||||
message.id = messageId;
|
message.id = messageId;
|
||||||
|
} else {
|
||||||
|
log.info(
|
||||||
|
`addCallHistory: No existing call history message found (Call ID ${callHistoryDetails.callId})`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue