@vgroup/dialbox 0.4.7 → 0.4.8
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.
- package/esm2020/lib/components/call-progress/call-progress.component.mjs +12 -8
- package/esm2020/lib/service/twilio.service.mjs +4 -1
- package/fesm2015/vgroup-dialbox.mjs +14 -7
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +14 -7
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1647,6 +1647,9 @@ class TwilioService {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
connect(data) {
|
|
1649
1649
|
// this.device.disconnect();
|
|
1650
|
+
if (this.device.activeCall) {
|
|
1651
|
+
this.device.disconnectAll();
|
|
1652
|
+
}
|
|
1650
1653
|
return this.device.connect({
|
|
1651
1654
|
params: {
|
|
1652
1655
|
Token: this.conferenceCallInfo.conferenceId,
|
|
@@ -1885,12 +1888,16 @@ class CallProgressComponent {
|
|
|
1885
1888
|
};
|
|
1886
1889
|
}
|
|
1887
1890
|
if (this.currentCallList.length == 1 && this.currentCallList[0].isHold) {
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1891
|
+
setTimeout(() => {
|
|
1892
|
+
if (this.currentCallList.length == 1 && this.currentCallList[0].isHold) {
|
|
1893
|
+
this.onholdOrUnholdParticipant({
|
|
1894
|
+
participantId: [this.currentCallList[0].participantId],
|
|
1895
|
+
conferenceId: this.conferenceId,
|
|
1896
|
+
hold: false,
|
|
1897
|
+
conference: this.currentCallList[0].isConference
|
|
1898
|
+
});
|
|
1899
|
+
}
|
|
1900
|
+
}, 1000);
|
|
1894
1901
|
}
|
|
1895
1902
|
}
|
|
1896
1903
|
else {
|
|
@@ -2300,7 +2307,7 @@ class CallProgressComponent {
|
|
|
2300
2307
|
}
|
|
2301
2308
|
async toggleMute(isConference) {
|
|
2302
2309
|
await this.onMuteParticipant({
|
|
2303
|
-
participantId: this.currentCall?.participantId,
|
|
2310
|
+
participantId: [this.currentCall?.participantId],
|
|
2304
2311
|
conferenceId: this.conferenceId,
|
|
2305
2312
|
mute: !this.isMute,
|
|
2306
2313
|
});
|