@vgroup/dialbox 0.3.70 → 0.3.71
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 +8 -5
- package/esm2020/lib/dialbox.component.mjs +1 -3
- package/fesm2015/vgroup-dialbox.mjs +9 -8
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +7 -6
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1789,7 +1789,6 @@ class CallProgressComponent {
|
|
|
1789
1789
|
}
|
|
1790
1790
|
ngOnChanges(changes) {
|
|
1791
1791
|
var _a, _b, _c;
|
|
1792
|
-
console.log('Call Progress Component ngOnChanges');
|
|
1793
1792
|
if (changes['callData']) {
|
|
1794
1793
|
if ((_a = changes['callData'].currentValue) === null || _a === void 0 ? void 0 : _a.isIncomingCall) {
|
|
1795
1794
|
this.incomingCallDiv = true;
|
|
@@ -1817,12 +1816,17 @@ class CallProgressComponent {
|
|
|
1817
1816
|
this.incomingCallDiv = false;
|
|
1818
1817
|
this.cdr.detectChanges();
|
|
1819
1818
|
this.currentCallList = this.currentCallList.filter((item) => !item.isIncomingCall);
|
|
1819
|
+
if (this.currentCallList.length == 0) {
|
|
1820
|
+
this.isCallInProgress = false;
|
|
1821
|
+
this.currentCall = {};
|
|
1822
|
+
}
|
|
1820
1823
|
}
|
|
1821
1824
|
}
|
|
1822
1825
|
catch (e) {
|
|
1823
1826
|
console.log(e);
|
|
1824
1827
|
}
|
|
1825
1828
|
}
|
|
1829
|
+
console.log('currentCallList', this.currentCallList);
|
|
1826
1830
|
}
|
|
1827
1831
|
ngAfterViewInit() {
|
|
1828
1832
|
// this.isRecording = false;
|
|
@@ -1875,7 +1879,7 @@ class CallProgressComponent {
|
|
|
1875
1879
|
yield this.connectToDevice(tokenData.token, callData);
|
|
1876
1880
|
yield this.pollCallStatus(callAuthId);
|
|
1877
1881
|
setTimeout(() => __awaiter(this, void 0, void 0, function* () {
|
|
1878
|
-
var _b, _c
|
|
1882
|
+
var _b, _c;
|
|
1879
1883
|
try {
|
|
1880
1884
|
this.addRes = yield this.addParticipantToCall({
|
|
1881
1885
|
from: callData === null || callData === void 0 ? void 0 : callData.from,
|
|
@@ -1883,14 +1887,13 @@ class CallProgressComponent {
|
|
|
1883
1887
|
participantNumber: callData === null || callData === void 0 ? void 0 : callData.phone,
|
|
1884
1888
|
conferenceId: this.conferenceId
|
|
1885
1889
|
});
|
|
1886
|
-
this.callData = Object.assign(Object.assign({}, callData), { participantId: (_b = this.addRes) === null || _b === void 0 ? void 0 : _b.participantId, isHold: false, isLeft: false, isIncomingCall: false, isConference: false });
|
|
1890
|
+
this.callData = Object.assign(Object.assign({}, callData), { participantId: (_b = this.addRes) === null || _b === void 0 ? void 0 : _b.participantId, isHold: false, isLeft: false, isIncomingCall: false, isConference: false, isAcceptCall: true });
|
|
1887
1891
|
this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
|
|
1888
1892
|
console.log('test111111');
|
|
1889
1893
|
this.currentCall = Object.assign(Object.assign({}, this.callData), { img: callData.img || 'assets/images/user.jpg' });
|
|
1890
1894
|
// Initialize isAcceptCall based on current call state to ensure UI renders if already connected
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
console.log('Initial participantId:', (_d = this.addRes) === null || _d === void 0 ? void 0 : _d.participantId);
|
|
1895
|
+
this.currentCallList.push(Object.assign(Object.assign({}, this.callData), { img: callData.img || 'assets/images/user.jpg', isAcceptCall: true }));
|
|
1896
|
+
console.log('Initial participantId:', (_c = this.addRes) === null || _c === void 0 ? void 0 : _c.participantId);
|
|
1894
1897
|
}
|
|
1895
1898
|
catch (e) {
|
|
1896
1899
|
console.error('Error adding initial participant:', e);
|
|
@@ -2879,7 +2882,6 @@ class DialboxComponent {
|
|
|
2879
2882
|
console.log('DialboxComponent constructor');
|
|
2880
2883
|
}
|
|
2881
2884
|
initializeTwilio() {
|
|
2882
|
-
console.log('initializeTwilio');
|
|
2883
2885
|
if (!this.isInitialized) {
|
|
2884
2886
|
this.token = localStorage.getItem('ext_token') || '';
|
|
2885
2887
|
if (!this.token) {
|
|
@@ -3006,7 +3008,6 @@ class DialboxComponent {
|
|
|
3006
3008
|
this.twilioService.conferenceCallInfo = incomingCallData;
|
|
3007
3009
|
if (!!incomingCallData.participants) {
|
|
3008
3010
|
this.incomingCallsList = incomingCallData.participants.filter((item) => !item.isLeft) || [];
|
|
3009
|
-
console.log('this.incomingCallsList web', this.incomingCallsList);
|
|
3010
3011
|
if (this.incomingCallsList.length) {
|
|
3011
3012
|
this.isCallInProgress = true;
|
|
3012
3013
|
this.isDialpadHidden = false;
|