@vgroup/dialbox 0.4.124 → 0.4.126

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.
@@ -1929,26 +1929,28 @@ class CallProgressComponent {
1929
1929
  if (((_l = changes['conferenceCallInfo']) === null || _l === void 0 ? void 0 : _l.currentValue) && this.conferenceCallInfo && ((_o = (_m = changes['conferenceCallInfo']) === null || _m === void 0 ? void 0 : _m.previousValue) === null || _o === void 0 ? void 0 : _o.conferenceSid) != ((_q = (_p = changes['conferenceCallInfo']) === null || _p === void 0 ? void 0 : _p.currentValue) === null || _q === void 0 ? void 0 : _q.conferenceSid)) {
1930
1930
  this.isConference = true;
1931
1931
  console.log(this.conferenceCallInfo, '222222222222222');
1932
- this.conferenceCallInfo.participants.forEach((item, index) => {
1933
- var _a;
1934
- let callInfo = {
1935
- from: (_a = this.selectedCallerId) === null || _a === void 0 ? void 0 : _a.number,
1936
- phone: item.direction == "outgoing-call" ? item.to : item.from,
1937
- img: '',
1938
- name: item.direction == "outgoing-call" ? (item.toName || item.to) : (item.fromName || item.from),
1939
- to: item.direction == "outgoing-call" ? item.to : item.from,
1940
- direction: item.direction,
1941
- status: ''
1942
- };
1943
- console.log(callInfo, 'callInfo33333333333');
1944
- this.currentCallList.push(callInfo);
1945
- if (index == 0) {
1946
- this.startCall(callInfo);
1947
- }
1948
- else {
1949
- this.callContact(callInfo);
1950
- }
1951
- });
1932
+ this.conferenceCallInfo.participants.forEach((item, index) => __awaiter(this, void 0, void 0, function* () {
1933
+ setTimeout(() => __awaiter(this, void 0, void 0, function* () {
1934
+ var _0;
1935
+ let callInfo = {
1936
+ from: (_0 = this.selectedCallerId) === null || _0 === void 0 ? void 0 : _0.number,
1937
+ phone: item.direction == "outgoing-call" ? item.to : item.from,
1938
+ img: '',
1939
+ name: item.direction == "outgoing-call" ? (item.toName || item.to) : (item.fromName || item.from),
1940
+ to: item.direction == "outgoing-call" ? item.to : item.from,
1941
+ direction: item.direction,
1942
+ status: ''
1943
+ };
1944
+ console.log(callInfo, 'callInfo33333333333');
1945
+ this.currentCallList.push(callInfo);
1946
+ if (index == 0) {
1947
+ yield this.startCall(callInfo);
1948
+ }
1949
+ else {
1950
+ yield this.callContact(callInfo);
1951
+ }
1952
+ }), index * 1000);
1953
+ }));
1952
1954
  }
1953
1955
  }
1954
1956
  getStatus(res) {
@@ -2073,16 +2075,6 @@ class CallProgressComponent {
2073
2075
  participantNumber: callData === null || callData === void 0 ? void 0 : callData.phone,
2074
2076
  conferenceId: this.conferenceId
2075
2077
  });
2076
- // this.callData = { ...callData, participantId: this.addRes?.participantId, isHold: false, isLeft: false, isIncomingCall: false, isConference: false, isAcceptCall: true };
2077
- // this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
2078
- console.log('test111111');
2079
- // this.currentCall = {...this.callData, img: callData.img ||'assets/images/user.jpg'};
2080
- // Initialize isAcceptCall based on current call state to ensure UI renders if already connected
2081
- // this.currentCallList.push({
2082
- // ...this.callData,
2083
- // img: callData.img || 'assets/images/user.jpg',
2084
- // isAcceptCall: true
2085
- // });
2086
2078
  console.log('Initial participantId:', (_b = this.addRes) === null || _b === void 0 ? void 0 : _b.participantId);
2087
2079
  }
2088
2080
  catch (e) {
@@ -2096,12 +2088,14 @@ class CallProgressComponent {
2096
2088
  console.log('test2');
2097
2089
  this.endCall();
2098
2090
  }
2091
+ return true;
2099
2092
  }
2100
2093
  catch (error) {
2101
2094
  this.showRingAnimation = false;
2102
2095
  this.handleError(error);
2103
2096
  console.log('test3');
2104
2097
  this.endCall();
2098
+ return false;
2105
2099
  }
2106
2100
  });
2107
2101
  }
@@ -2524,6 +2518,7 @@ class CallProgressComponent {
2524
2518
  // this.currentCallList.push({...this.callData});
2525
2519
  console.log("Participant added to conference:", phoneNumber);
2526
2520
  this.showRingAnimation = false;
2521
+ return true;
2527
2522
  }
2528
2523
  else {
2529
2524
  this.currentCallList.forEach((c) => __awaiter(this, void 0, void 0, function* () {