@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.
|
@@ -3248,25 +3248,25 @@ class DialboxComponent {
|
|
|
3248
3248
|
this.twilioService.conferenceCallInfo = incomingCallData;
|
|
3249
3249
|
let participants = [];
|
|
3250
3250
|
if (!!incomingCallData.participants) {
|
|
3251
|
-
|
|
3251
|
+
this.incomingCallsList = incomingCallData.participants.length > 0 ? incomingCallData.participants.filter((item) => !item.isLeft) : [];
|
|
3252
3252
|
}
|
|
3253
3253
|
// incomingCallData.participants.length ? incomingCallData.participants.filter((item: any) => !item.isLeft) : [];
|
|
3254
|
-
if (
|
|
3254
|
+
if (this.incomingCallsList.length > 0) {
|
|
3255
3255
|
// this.showIncomingCallPopup(incoming, data/
|
|
3256
|
-
if (
|
|
3256
|
+
if (this.incomingCallsList.length > 1) {
|
|
3257
3257
|
// /utilities/ext/add/incoming/participant/{participantId}/{conferenceId}
|
|
3258
|
-
let data =
|
|
3258
|
+
let data = this.incomingCallsList.filter((item) => item.status == 'ringing');
|
|
3259
3259
|
this.twilioService.addIncomingParticipant(data[0].participantId, incomingCallData.conferenceId).subscribe((data) => {
|
|
3260
3260
|
console.log(data, 'bhhhhhhhhhhhhhhhhhhh');
|
|
3261
3261
|
});
|
|
3262
3262
|
}
|
|
3263
3263
|
this.isCallInProgress = true;
|
|
3264
3264
|
this.isDialpadHidden = false;
|
|
3265
|
-
this.callData.phone =
|
|
3265
|
+
this.callData.phone = this.incomingCallsList[0].from;
|
|
3266
3266
|
this.callData.name = "";
|
|
3267
3267
|
this.callData.img = "assets/images/user.jpg";
|
|
3268
3268
|
this.callData.isIncomingCall = true;
|
|
3269
|
-
this.callData.participantId =
|
|
3269
|
+
this.callData.participantId = this.incomingCallsList[0].participantId;
|
|
3270
3270
|
this.callData.conferenceId = incomingCallData.conferenceId;
|
|
3271
3271
|
this.callData.conferenceSid = incomingCallData.conferenceSid;
|
|
3272
3272
|
// let device = await this.twilioService.connect('');
|