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
|
// These are view only and don't update the Conversation model, so they
|
||||||
// need a manual update call.
|
// need a manual update call.
|
||||||
onOutgoingAudioCallInConversation: async () => {
|
onOutgoingAudioCallInConversation: async () => {
|
||||||
|
window.log.info(
|
||||||
|
'onOutgoingAudioCallInConversation: about to start an audio call'
|
||||||
|
);
|
||||||
|
|
||||||
const conversation = this.model;
|
const conversation = this.model;
|
||||||
const isVideoCall = false;
|
const isVideoCall = false;
|
||||||
|
|
||||||
if (await this.isCallSafe()) {
|
if (await this.isCallSafe()) {
|
||||||
|
window.log.info(
|
||||||
|
'onOutgoingAudioCallInConversation: call is deemed "safe". Making call'
|
||||||
|
);
|
||||||
await window.Signal.Services.calling.startOutgoingCall(
|
await window.Signal.Services.calling.startOutgoingCall(
|
||||||
conversation,
|
conversation,
|
||||||
isVideoCall
|
isVideoCall
|
||||||
);
|
);
|
||||||
|
window.log.info(
|
||||||
|
'onOutgoingAudioCallInConversation: started the call'
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
window.log.info(
|
||||||
|
'onOutgoingAudioCallInConversation: call is deemed "unsafe". Stopping'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onOutgoingVideoCallInConversation: async () => {
|
onOutgoingVideoCallInConversation: async () => {
|
||||||
|
window.log.info(
|
||||||
|
'onOutgoingVideoCallInConversation: about to start a video call'
|
||||||
|
);
|
||||||
|
|
||||||
const conversation = this.model;
|
const conversation = this.model;
|
||||||
const isVideoCall = true;
|
const isVideoCall = true;
|
||||||
|
|
||||||
if (await this.isCallSafe()) {
|
if (await this.isCallSafe()) {
|
||||||
|
window.log.info(
|
||||||
|
'onOutgoingVideoCallInConversation: call is deemed "safe". Making call'
|
||||||
|
);
|
||||||
await window.Signal.Services.calling.startOutgoingCall(
|
await window.Signal.Services.calling.startOutgoingCall(
|
||||||
conversation,
|
conversation,
|
||||||
isVideoCall
|
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