@vgroup/dialbox 0.2.90 → 0.2.91

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.
@@ -3080,14 +3080,14 @@ class DialboxComponent {
3080
3080
  this.incomeingCallSocketService.connect();
3081
3081
  try {
3082
3082
  this.incomeingCallSocketService.listen().subscribe((incomingCallData) => {
3083
- const data = JSON.parse(incomingCallData.data);
3083
+ // const data = JSON.parse(incomingCallData.data);
3084
3084
  console.log("WS Event Received:", incomingCallData);
3085
3085
  console.log("WS Event Received:", incomingCallData.data);
3086
- if (data[0]) {
3086
+ if (incomingCallData.participants[0]) {
3087
3087
  // this.showIncomingCallPopup(incoming, data/
3088
3088
  this.isCallInProgress = true;
3089
3089
  this.isDialpadHidden = false;
3090
- this.callData.phone = data[0].from;
3090
+ this.callData.phone = incomingCallData.participants[0].from;
3091
3091
  this.callData.name = "";
3092
3092
  this.callData.img = "assets/images/user.jpg";
3093
3093
  this.callData.isIncomingCall = true;