@vgroup/dialbox 0.3.18 → 0.3.20

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.
@@ -2209,7 +2209,7 @@ class CallProgressComponent {
2209
2209
  this.callData = { ...this.callData, participantId: this.addRes?.participantId, isHold: false, isLeft: false, isIncomingCall: false, isConference: false };
2210
2210
  this.call['callInfo'] = JSON.parse(JSON.stringify(this.callData));
2211
2211
  console.log('test111111');
2212
- this.currentCall = this.callData;
2212
+ this.currentCall = { ...this.callData };
2213
2213
  this.currentCallList.push({ ...this.callData });
2214
2214
  console.log('Initial participantId:', this.addRes?.participantId);
2215
2215
  }
@@ -2475,7 +2475,7 @@ class CallProgressComponent {
2475
2475
  // Get the phone number from the contact
2476
2476
  const phoneNumber = contact?.numbersList?.[0]?.number;
2477
2477
  const currentCall = this.currentCallList.find((c) => c?.phone === phoneNumber);
2478
- if (!phoneNumber || Object.keys(currentCall).length !== 0) {
2478
+ if (!phoneNumber || currentCall) {
2479
2479
  console.error('No phone number found for contact');
2480
2480
  return;
2481
2481
  }