@vgroup/dialbox 0.2.66 → 0.2.68

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.
@@ -609,7 +609,7 @@ class ExtensionService {
609
609
  'Content-Type': 'application/json',
610
610
  'Auth-Key': 'Bearer ' + localStorage.getItem('ext_token')
611
611
  });
612
- const httpOptions = { headers };
612
+ const httpOptions = { headers: headers };
613
613
  return this.http.post(environment.apiUrl + '/utilities/ext/ur/hold/participant', payload, httpOptions);
614
614
  }
615
615
  // getAllParticipants(id:any, payload: any) {
@@ -2139,7 +2139,6 @@ class CallProgressComponent {
2139
2139
  participantNumber: callData === null || callData === void 0 ? void 0 : callData.phone,
2140
2140
  conferenceId: this.conferenceId
2141
2141
  });
2142
- // Save participantId for the active leg so we can hold/unhold later
2143
2142
  this.callData = Object.assign(Object.assign({}, this.callData), { participantId: addRes === null || addRes === void 0 ? void 0 : addRes.participantId });
2144
2143
  console.log('Initial participantId:', addRes === null || addRes === void 0 ? void 0 : addRes.participantId);
2145
2144
  }
@@ -2417,15 +2416,13 @@ class CallProgressComponent {
2417
2416
  return;
2418
2417
  }
2419
2418
  // Add participant to the conference
2420
- const addRes = yield this.addParticipantToCall({
2419
+ yield this.addParticipantToCall({
2421
2420
  from: (_d = this.callData) === null || _d === void 0 ? void 0 : _d.from,
2422
2421
  route: "OUTGOING",
2423
2422
  participantNumber: phoneNumber,
2424
2423
  conferenceId: conferenceId
2425
2424
  });
2426
- // Save the new participant's id for future actions (hold/unhold/remove)
2427
- this.callData = Object.assign(Object.assign({}, this.callData), { lastAddedParticipantId: addRes === null || addRes === void 0 ? void 0 : addRes.participantId });
2428
- console.log("Participant added to conference:", phoneNumber, 'id:', addRes === null || addRes === void 0 ? void 0 : addRes.participantId);
2425
+ console.log("Participant added to conference:", phoneNumber);
2429
2426
  this.showRingAnimation = false;
2430
2427
  }
2431
2428
  catch (error) {