@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.
|
@@ -3104,15 +3104,16 @@ class DialboxComponent {
|
|
|
3104
3104
|
console.log("WS Event Received:", incomingCallData);
|
|
3105
3105
|
console.log("WS Event Received:", incomingCallData.data);
|
|
3106
3106
|
this.twilioService.conferenceName = incomingCallData.conferenceName;
|
|
3107
|
-
|
|
3107
|
+
let participants = incomingCallData.participants.filter((item) => !item.isLeft);
|
|
3108
|
+
if (participants.length > 0) {
|
|
3108
3109
|
// this.showIncomingCallPopup(incoming, data/
|
|
3109
3110
|
this.isCallInProgress = true;
|
|
3110
3111
|
this.isDialpadHidden = false;
|
|
3111
|
-
this.callData.phone =
|
|
3112
|
+
this.callData.phone = participants[0].from;
|
|
3112
3113
|
this.callData.name = "";
|
|
3113
3114
|
this.callData.img = "assets/images/user.jpg";
|
|
3114
3115
|
this.callData.isIncomingCall = true;
|
|
3115
|
-
this.callData.participantId =
|
|
3116
|
+
this.callData.participantId = participants[0].participantId;
|
|
3116
3117
|
this.callData.conferenceId = incomingCallData.conferenceId;
|
|
3117
3118
|
this.callData.conferenceSid = incomingCallData.conferenceSid;
|
|
3118
3119
|
}
|