@vgroup/dialbox 0.3.10 → 0.3.11

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.
@@ -2233,6 +2233,7 @@ class CallProgressComponent {
2233
2233
  });
2234
2234
  this.callData = Object.assign(Object.assign({}, this.callData), { participantId: (_b = this.addRes) === null || _b === void 0 ? void 0 : _b.participantId });
2235
2235
  this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
2236
+ console.log('test111111');
2236
2237
  this.currentCallList.push(callData);
2237
2238
  console.log('Initial participantId:', (_c = this.addRes) === null || _c === void 0 ? void 0 : _c.participantId);
2238
2239
  }
@@ -2574,6 +2575,7 @@ class CallProgressComponent {
2574
2575
  });
2575
2576
  this.callData = Object.assign(Object.assign({}, this.callData), { participantId: data === null || data === void 0 ? void 0 : data.participantId });
2576
2577
  console.log(this.callData, 'this.callData');
2578
+ console.log('test111111');
2577
2579
  this.currentCallList.push(this.callData);
2578
2580
  console.log("Participant added to conference:", phoneNumber);
2579
2581
  this.showRingAnimation = false;
@@ -3173,11 +3175,12 @@ class DialboxComponent {
3173
3175
  this.incomeingCallSocketService.connect();
3174
3176
  try {
3175
3177
  this.incomeingCallSocketService.listen().subscribe((incomingCallData) => __awaiter(this, void 0, void 0, function* () {
3178
+ var _a;
3176
3179
  // const data = JSON.parse(incomingCallData.data);
3177
3180
  console.log("WS Event Received:", incomingCallData);
3178
3181
  console.log("WS Event Received:", incomingCallData.data);
3179
3182
  this.twilioService.conferenceName = incomingCallData.conferenceName;
3180
- let participants = incomingCallData.participants.length > 0 ? incomingCallData.participants.filter((item) => !item.isLeft) : [];
3183
+ let participants = ((_a = incomingCallData === null || incomingCallData === void 0 ? void 0 : incomingCallData.participants) === null || _a === void 0 ? void 0 : _a.length) > 0 ? incomingCallData.participants.filter((item) => !item.isLeft) : [];
3181
3184
  if (participants.length > 0) {
3182
3185
  // this.showIncomingCallPopup(incoming, data/
3183
3186
  this.isCallInProgress = true;