@vgroup/dialbox 0.5.40 → 0.5.41

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.
@@ -3549,6 +3549,7 @@ class DialboxComponent {
3549
3549
  this.incomeingCallSocketService.connect(this.deviceId);
3550
3550
  try {
3551
3551
  this.incomeingCallSocketService.listen().subscribe((incomingCallData) => __awaiter(this, void 0, void 0, function* () {
3552
+ var _a;
3552
3553
  // const data = JSON.parse(incomingCallData.data);
3553
3554
  // console.log("WS Event Received:", incomingCallData);
3554
3555
  // console.log("WS Event Received:", incomingCallData.data);
@@ -3586,8 +3587,9 @@ class DialboxComponent {
3586
3587
  if (!this.isIncomingCallnotification) {
3587
3588
  this.callData = [];
3588
3589
  this.incomingCallsList = [];
3590
+ this.isCallInProgress = false;
3591
+ (_a = this.twilioService.device) === null || _a === void 0 ? void 0 : _a.disconnectAll();
3589
3592
  }
3590
- // this.isCallInProgress = false;
3591
3593
  }
3592
3594
  // incomingCallData.participants.length ? incomingCallData.participants.filter((item: any) => !item.isLeft) : [];
3593
3595
  // this.initializeTwilio();