@vgroup/dialbox 0.3.34 → 0.3.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3241,25 +3241,25 @@ class DialboxComponent {
|
|
|
3241
3241
|
this.twilioService.conferenceCallInfo = incomingCallData;
|
|
3242
3242
|
let participants = [];
|
|
3243
3243
|
if (!!incomingCallData.participants) {
|
|
3244
|
-
|
|
3244
|
+
this.incomingCallsList = incomingCallData.participants.length > 0 ? incomingCallData.participants.filter((item) => !item.isLeft) : [];
|
|
3245
3245
|
}
|
|
3246
3246
|
// incomingCallData.participants.length ? incomingCallData.participants.filter((item: any) => !item.isLeft) : [];
|
|
3247
|
-
if (
|
|
3247
|
+
if (this.incomingCallsList.length > 0) {
|
|
3248
3248
|
// this.showIncomingCallPopup(incoming, data/
|
|
3249
|
-
if (
|
|
3249
|
+
if (this.incomingCallsList.length > 1) {
|
|
3250
3250
|
// /utilities/ext/add/incoming/participant/{participantId}/{conferenceId}
|
|
3251
|
-
let data =
|
|
3251
|
+
let data = this.incomingCallsList.filter((item) => item.status == 'ringing');
|
|
3252
3252
|
this.twilioService.addIncomingParticipant(data[0].participantId, incomingCallData.conferenceId).subscribe((data) => {
|
|
3253
3253
|
console.log(data, 'bhhhhhhhhhhhhhhhhhhh');
|
|
3254
3254
|
});
|
|
3255
3255
|
}
|
|
3256
3256
|
this.isCallInProgress = true;
|
|
3257
3257
|
this.isDialpadHidden = false;
|
|
3258
|
-
this.callData.phone =
|
|
3258
|
+
this.callData.phone = this.incomingCallsList[0].from;
|
|
3259
3259
|
this.callData.name = "";
|
|
3260
3260
|
this.callData.img = "assets/images/user.jpg";
|
|
3261
3261
|
this.callData.isIncomingCall = true;
|
|
3262
|
-
this.callData.participantId =
|
|
3262
|
+
this.callData.participantId = this.incomingCallsList[0].participantId;
|
|
3263
3263
|
this.callData.conferenceId = incomingCallData.conferenceId;
|
|
3264
3264
|
this.callData.conferenceSid = incomingCallData.conferenceSid;
|
|
3265
3265
|
// let device = await this.twilioService.connect('');
|