@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.
|
@@ -3110,14 +3110,14 @@ class DialboxComponent {
|
|
|
3110
3110
|
this.incomeingCallSocketService.connect();
|
|
3111
3111
|
try {
|
|
3112
3112
|
this.incomeingCallSocketService.listen().subscribe((incomingCallData) => {
|
|
3113
|
-
const data = JSON.parse(incomingCallData.data);
|
|
3113
|
+
// const data = JSON.parse(incomingCallData.data);
|
|
3114
3114
|
console.log("WS Event Received:", incomingCallData);
|
|
3115
3115
|
console.log("WS Event Received:", incomingCallData.data);
|
|
3116
|
-
if (
|
|
3116
|
+
if (incomingCallData.participants[0]) {
|
|
3117
3117
|
// this.showIncomingCallPopup(incoming, data/
|
|
3118
3118
|
this.isCallInProgress = true;
|
|
3119
3119
|
this.isDialpadHidden = false;
|
|
3120
|
-
this.callData.phone =
|
|
3120
|
+
this.callData.phone = incomingCallData.participants[0].from;
|
|
3121
3121
|
this.callData.name = "";
|
|
3122
3122
|
this.callData.img = "assets/images/user.jpg";
|
|
3123
3123
|
this.callData.isIncomingCall = true;
|