@vgroup/dialbox 0.3.21 → 0.3.22
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.
|
@@ -2237,8 +2237,10 @@ class CallProgressComponent {
|
|
|
2237
2237
|
this.onholdOrUnholdParticipant({
|
|
2238
2238
|
participantId: c.participantId,
|
|
2239
2239
|
conferenceId: this.conferenceId,
|
|
2240
|
-
hold:
|
|
2240
|
+
hold: !c.hold
|
|
2241
2241
|
});
|
|
2242
|
+
c.hold = !c.hold;
|
|
2243
|
+
this.cdr.detectChanges();
|
|
2242
2244
|
}
|
|
2243
2245
|
async onEndCall(c, isAllCallEnd) {
|
|
2244
2246
|
console.log(c, 'dsdsdsdsdsdsadsa');
|
|
@@ -2527,7 +2529,7 @@ class CallProgressComponent {
|
|
|
2527
2529
|
// ...this.callData,
|
|
2528
2530
|
phone: phoneNumber,
|
|
2529
2531
|
displayNum: phoneNumber,
|
|
2530
|
-
name:
|
|
2532
|
+
name: contact?.name || phoneNumber,
|
|
2531
2533
|
img: contact?.img || 'assets/images/user.jpg',
|
|
2532
2534
|
participantId: data?.participantId,
|
|
2533
2535
|
from: this.selectedCallerId?.number,
|
|
@@ -2678,13 +2680,24 @@ class CallProgressComponent {
|
|
|
2678
2680
|
async mergeCalls() {
|
|
2679
2681
|
// Merge functionality - unmute both calls for conference
|
|
2680
2682
|
if (this.heldCall && this.call) {
|
|
2681
|
-
|
|
2682
|
-
participantId
|
|
2683
|
-
|
|
2684
|
-
|
|
2683
|
+
this.currentCallList.forEach(async (c) => {
|
|
2684
|
+
if (c?.participantId && c?.isHold) {
|
|
2685
|
+
c.isHold = false;
|
|
2686
|
+
await this.onholdOrUnholdParticipant({
|
|
2687
|
+
participantId: c?.participantId,
|
|
2688
|
+
conferenceId: this.conferenceId,
|
|
2689
|
+
hold: false
|
|
2690
|
+
});
|
|
2691
|
+
}
|
|
2692
|
+
c.isConference = true;
|
|
2685
2693
|
});
|
|
2686
|
-
this.
|
|
2687
|
-
this.
|
|
2694
|
+
// await this.onholdOrUnholdParticipant({
|
|
2695
|
+
// participantId: this.heldCall?.callInfo?.participantId,
|
|
2696
|
+
// conferenceId: this.conferenceId,
|
|
2697
|
+
// hold: false
|
|
2698
|
+
// });
|
|
2699
|
+
// this.heldCall.mute(false);
|
|
2700
|
+
// this.call.mute(false);
|
|
2688
2701
|
this.isCallOnHold = false;
|
|
2689
2702
|
this.isConference = true;
|
|
2690
2703
|
this.cdr.detectChanges();
|