@vgroup/dialbox 0.3.1 → 0.3.2
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.
|
@@ -3137,15 +3137,16 @@ class DialboxComponent {
|
|
|
3137
3137
|
console.log("WS Event Received:", incomingCallData);
|
|
3138
3138
|
console.log("WS Event Received:", incomingCallData.data);
|
|
3139
3139
|
this.twilioService.conferenceName = incomingCallData.conferenceName;
|
|
3140
|
-
|
|
3140
|
+
let participants = incomingCallData.participants.filter((item) => !item.isLeft);
|
|
3141
|
+
if (participants.length > 0) {
|
|
3141
3142
|
// this.showIncomingCallPopup(incoming, data/
|
|
3142
3143
|
this.isCallInProgress = true;
|
|
3143
3144
|
this.isDialpadHidden = false;
|
|
3144
|
-
this.callData.phone =
|
|
3145
|
+
this.callData.phone = participants[0].from;
|
|
3145
3146
|
this.callData.name = "";
|
|
3146
3147
|
this.callData.img = "assets/images/user.jpg";
|
|
3147
3148
|
this.callData.isIncomingCall = true;
|
|
3148
|
-
this.callData.participantId =
|
|
3149
|
+
this.callData.participantId = participants[0].participantId;
|
|
3149
3150
|
this.callData.conferenceId = incomingCallData.conferenceId;
|
|
3150
3151
|
this.callData.conferenceSid = incomingCallData.conferenceSid;
|
|
3151
3152
|
}
|