@vgroup/dialbox 0.3.89 → 0.3.91
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.
|
@@ -1797,7 +1797,7 @@ class CallProgressComponent {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
else if (((_b = changes['callData'].currentValue) === null || _b === void 0 ? void 0 : _b.displayNum) || ((_c = changes['callData'].currentValue) === null || _c === void 0 ? void 0 : _c.from)) {
|
|
1799
1799
|
console.log('test-startCall123', changes['callData'].currentValue);
|
|
1800
|
-
this.currentCall =
|
|
1800
|
+
// this.currentCall = { ...changes['callData'].currentValue, img: 'assets/images/user.jpg' };
|
|
1801
1801
|
this.startCall(changes['callData'].currentValue);
|
|
1802
1802
|
}
|
|
1803
1803
|
}
|
|
@@ -1879,8 +1879,8 @@ class CallProgressComponent {
|
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
1881
|
getStatus(res) {
|
|
1882
|
-
const statusList = ["answered", "participant-hold", "participant-mute", "participant-join", "queued", "in-progress", "
|
|
1883
|
-
if (statusList.includes(res.status)) {
|
|
1882
|
+
const statusList = ["answered", "participant-hold", "participant-mute", "participant-join", "queued", "in-progress", "initiated"];
|
|
1883
|
+
if (statusList.includes(res.status) || (res.status == "ringing" && !res.isIncomingCall)) {
|
|
1884
1884
|
return true;
|
|
1885
1885
|
}
|
|
1886
1886
|
else {
|
|
@@ -2534,7 +2534,7 @@ class CallProgressComponent {
|
|
|
2534
2534
|
// Merge functionality - unmute both calls for conference
|
|
2535
2535
|
if (this.currentCallList.length > 1) {
|
|
2536
2536
|
this.currentCallList.forEach((c) => __awaiter(this, void 0, void 0, function* () {
|
|
2537
|
-
if (
|
|
2537
|
+
if (c === null || c === void 0 ? void 0 : c.participantId) {
|
|
2538
2538
|
c.isHold = false;
|
|
2539
2539
|
yield this.onholdOrUnholdParticipant({
|
|
2540
2540
|
participantId: [c === null || c === void 0 ? void 0 : c.participantId],
|
|
@@ -2542,8 +2542,14 @@ class CallProgressComponent {
|
|
|
2542
2542
|
hold: false,
|
|
2543
2543
|
isConference: true
|
|
2544
2544
|
});
|
|
2545
|
+
c.isConference = true;
|
|
2546
|
+
// } else if(c?.participantId && c.isIncomingCall){
|
|
2547
|
+
// await this.twilioService.addIncomingParticipant(c?.participantId, this.conferenceId).subscribe((data: any) => {
|
|
2548
|
+
// console.log(data,'bhhhhhhhhhhhhhhhhhhh')
|
|
2549
|
+
// })
|
|
2550
|
+
// c.isHold = false;
|
|
2551
|
+
// c.isConference = true;
|
|
2545
2552
|
}
|
|
2546
|
-
c.isConference = true;
|
|
2547
2553
|
}));
|
|
2548
2554
|
// await this.onholdOrUnholdParticipant({
|
|
2549
2555
|
// participantId: this.heldCall?.callInfo?.participantId,
|