Add debug logging to conversation view when starting outbound call
This commit is contained in:
parent
80fe9b97d0
commit
bee51d74f5
1 changed files with 28 additions and 0 deletions
|
@ -425,26 +425,54 @@
|
|||
// These are view only and don't update the Conversation model, so they
|
||||
// need a manual update call.
|
||||
onOutgoingAudioCallInConversation: async () => {
|
||||
window.log.info(
|
||||
'onOutgoingAudioCallInConversation: about to start an audio call'
|
||||
);
|
||||
|
||||
const conversation = this.model;
|
||||
const isVideoCall = false;
|
||||
|
||||
if (await this.isCallSafe()) {
|
||||
window.log.info(
|
||||
'onOutgoingAudioCallInConversation: call is deemed "safe". Making call'
|
||||
);
|
||||
await window.Signal.Services.calling.startOutgoingCall(
|
||||
conversation,
|
||||
isVideoCall
|
||||
);
|
||||
window.log.info(
|
||||
'onOutgoingAudioCallInConversation: started the call'
|
||||
);
|
||||
} else {
|
||||
window.log.info(
|
||||
'onOutgoingAudioCallInConversation: call is deemed "unsafe". Stopping'
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
onOutgoingVideoCallInConversation: async () => {
|
||||
window.log.info(
|
||||
'onOutgoingVideoCallInConversation: about to start a video call'
|
||||
);
|
||||
|
||||
const conversation = this.model;
|
||||
const isVideoCall = true;
|
||||
|
||||
if (await this.isCallSafe()) {
|
||||
window.log.info(
|
||||
'onOutgoingVideoCallInConversation: call is deemed "safe". Making call'
|
||||
);
|
||||
await window.Signal.Services.calling.startOutgoingCall(
|
||||
conversation,
|
||||
isVideoCall
|
||||
);
|
||||
window.log.info(
|
||||
'onOutgoingVideoCallInConversation: started the call'
|
||||
);
|
||||
} else {
|
||||
window.log.info(
|
||||
'onOutgoingVideoCallInConversation: call is deemed "unsafe". Stopping'
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue