Add debug logging to conversation view when starting outbound call
This commit is contained in:
@@ -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'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user