@vgroup/dialbox 0.4.6 → 0.4.7

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.
@@ -1646,7 +1646,7 @@ class TwilioService {
1646
1646
  return this.http.get(`${environment.apiUrl}/utilities/ext/add/incoming/participant/${participantId}/${conferenceId}`, httpOptions);
1647
1647
  }
1648
1648
  connect(data) {
1649
- this.device.disconnect();
1649
+ // this.device.disconnect();
1650
1650
  return this.device.connect({
1651
1651
  params: {
1652
1652
  Token: this.conferenceCallInfo.conferenceId,
@@ -2067,9 +2067,6 @@ class CallProgressComponent {
2067
2067
  return await this.extensionService.getCallStatusOfParticipants(participantId).toPromise();
2068
2068
  }
2069
2069
  async onMuteParticipant(payload) {
2070
- // const payload = {
2071
- // "participantId": "string", "conferenceId": "string", "mute": true
2072
- // }
2073
2070
  return await this.extensionService.onMuteParticipant(payload).toPromise();
2074
2071
  }
2075
2072
  async getRemoveParticipants(participantId, conferenceId) {
@@ -2301,15 +2298,15 @@ class CallProgressComponent {
2301
2298
  // this.maximiseDialpad();
2302
2299
  // }
2303
2300
  }
2304
- toggleMute(isConference) {
2305
- this.isMute = !this.isMute;
2306
- // this.call?.mute(this.isMute);
2307
- // if (isConference) {
2308
- this.onMuteParticipant({
2301
+ async toggleMute(isConference) {
2302
+ await this.onMuteParticipant({
2309
2303
  participantId: this.currentCall?.participantId,
2310
2304
  conferenceId: this.conferenceId,
2311
- mute: this.isMute,
2305
+ mute: !this.isMute,
2312
2306
  });
2307
+ this.isMute = !this.isMute;
2308
+ // this.call?.mute(this.isMute);
2309
+ // if (isConference) {
2313
2310
  this.currentCall.isMute = this.isMute;
2314
2311
  // } else {
2315
2312
  // }