@vgroup/dialbox 0.3.88 → 0.3.89
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.
|
@@ -1829,7 +1829,8 @@ class CallProgressComponent {
|
|
|
1829
1829
|
await this.onholdOrUnholdParticipant({
|
|
1830
1830
|
participantId: [this.currentCall?.participantId],
|
|
1831
1831
|
conferenceId: this.conferenceId,
|
|
1832
|
-
hold: false
|
|
1832
|
+
hold: false,
|
|
1833
|
+
isConference: this.currentCall?.isConference
|
|
1833
1834
|
});
|
|
1834
1835
|
this.currentCallList[0].isHold = false;
|
|
1835
1836
|
}
|
|
@@ -1839,7 +1840,8 @@ class CallProgressComponent {
|
|
|
1839
1840
|
await this.onholdOrUnholdParticipant({
|
|
1840
1841
|
participantId: conferenceCalllist.map((item) => item.participantId),
|
|
1841
1842
|
conferenceId: this.conferenceId,
|
|
1842
|
-
hold: false
|
|
1843
|
+
hold: false,
|
|
1844
|
+
isConference: this.currentCall?.isConference
|
|
1843
1845
|
});
|
|
1844
1846
|
this.currentCallList.forEach((item) => {
|
|
1845
1847
|
if (item.isConference) {
|
|
@@ -1909,21 +1911,9 @@ class CallProgressComponent {
|
|
|
1909
1911
|
}
|
|
1910
1912
|
}
|
|
1911
1913
|
getStatus(res) {
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
}
|
|
1916
|
-
else {
|
|
1917
|
-
return false;
|
|
1918
|
-
}
|
|
1919
|
-
}
|
|
1920
|
-
else if (res.direction == "outgoing-call") {
|
|
1921
|
-
if (res.status == "answered" || res.status == "participant-hold" || res.status == "participant-mute" || res.status == "participant-join" || res.status == "queued" || res.status == "in-progress" || res.status == "ringing" || res.status == "initiated") {
|
|
1922
|
-
return true;
|
|
1923
|
-
}
|
|
1924
|
-
else {
|
|
1925
|
-
return false;
|
|
1926
|
-
}
|
|
1914
|
+
const statusList = ["answered", "participant-hold", "participant-mute", "participant-join", "queued", "in-progress", "ringing", "initiated"];
|
|
1915
|
+
if (statusList.includes(res.status)) {
|
|
1916
|
+
return true;
|
|
1927
1917
|
}
|
|
1928
1918
|
else {
|
|
1929
1919
|
return false;
|
|
@@ -2021,7 +2011,8 @@ class CallProgressComponent {
|
|
|
2021
2011
|
this.onholdOrUnholdParticipant({
|
|
2022
2012
|
participantId: [c.participantId],
|
|
2023
2013
|
conferenceId: this.conferenceId,
|
|
2024
|
-
hold: !c.hold
|
|
2014
|
+
hold: !c.hold,
|
|
2015
|
+
isConference: c?.isConference
|
|
2025
2016
|
});
|
|
2026
2017
|
c.hold = !c.hold;
|
|
2027
2018
|
this.cdr.detectChanges();
|
|
@@ -2226,7 +2217,8 @@ class CallProgressComponent {
|
|
|
2226
2217
|
await this.onholdOrUnholdParticipant({
|
|
2227
2218
|
participantId: [this.currentCall?.participantId],
|
|
2228
2219
|
conferenceId: this.conferenceId,
|
|
2229
|
-
hold: false
|
|
2220
|
+
hold: false,
|
|
2221
|
+
isConference: this.currentCall?.isConference
|
|
2230
2222
|
});
|
|
2231
2223
|
}
|
|
2232
2224
|
else {
|
|
@@ -2310,7 +2302,8 @@ class CallProgressComponent {
|
|
|
2310
2302
|
await this.onholdOrUnholdParticipant({
|
|
2311
2303
|
participantId: this.currentCall?.isIncomingCall ? [this.currentCall?.id] : [this.currentCall?.participantId],
|
|
2312
2304
|
conferenceId: this.conferenceId,
|
|
2313
|
-
hold: true
|
|
2305
|
+
hold: true,
|
|
2306
|
+
isConference: this.currentCall?.isConference
|
|
2314
2307
|
});
|
|
2315
2308
|
data.isHold = false;
|
|
2316
2309
|
}
|
|
@@ -2385,7 +2378,8 @@ class CallProgressComponent {
|
|
|
2385
2378
|
await this.onholdOrUnholdParticipant({
|
|
2386
2379
|
participantId: [c?.participantId],
|
|
2387
2380
|
conferenceId: this.conferenceId,
|
|
2388
|
-
hold: c?.isHold
|
|
2381
|
+
hold: c?.isHold,
|
|
2382
|
+
isConference: c?.isConference
|
|
2389
2383
|
});
|
|
2390
2384
|
}
|
|
2391
2385
|
});
|
|
@@ -2525,7 +2519,8 @@ class CallProgressComponent {
|
|
|
2525
2519
|
await this.onholdOrUnholdParticipant({
|
|
2526
2520
|
participantId: [c?.participantId],
|
|
2527
2521
|
conferenceId: this.conferenceId,
|
|
2528
|
-
hold: c?.isHold
|
|
2522
|
+
hold: c?.isHold,
|
|
2523
|
+
isConference: c?.isConference
|
|
2529
2524
|
});
|
|
2530
2525
|
}
|
|
2531
2526
|
else if (callInfo?.isHold && c?.participantId === callInfo?.participantId) {
|
|
@@ -2533,7 +2528,8 @@ class CallProgressComponent {
|
|
|
2533
2528
|
await this.onholdOrUnholdParticipant({
|
|
2534
2529
|
participantId: [c?.participantId],
|
|
2535
2530
|
conferenceId: this.conferenceId,
|
|
2536
|
-
hold: c?.isHold
|
|
2531
|
+
hold: c?.isHold,
|
|
2532
|
+
isConference: c?.isConference
|
|
2537
2533
|
});
|
|
2538
2534
|
this.currentCall = c;
|
|
2539
2535
|
}
|
|
@@ -2585,7 +2581,8 @@ class CallProgressComponent {
|
|
|
2585
2581
|
await this.onholdOrUnholdParticipant({
|
|
2586
2582
|
participantId: [c?.participantId],
|
|
2587
2583
|
conferenceId: this.conferenceId,
|
|
2588
|
-
hold: false
|
|
2584
|
+
hold: false,
|
|
2585
|
+
isConference: true
|
|
2589
2586
|
});
|
|
2590
2587
|
}
|
|
2591
2588
|
c.isConference = true;
|