@vgroup/dialbox 0.0.86 → 0.0.87
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.
|
@@ -2271,35 +2271,6 @@ class DialboxComponent {
|
|
|
2271
2271
|
this.isDialpadHidden = false; // Show dialpad on incoming call
|
|
2272
2272
|
}
|
|
2273
2273
|
});
|
|
2274
|
-
if (this.incomingCallData) {
|
|
2275
|
-
this.isCallInProgress = true;
|
|
2276
|
-
this.isDialpadHidden = false; // Show dialpad on incoming call
|
|
2277
|
-
if (this.isCallInProgress) {
|
|
2278
|
-
this.newIncomingCalls.push(this.incomingCallData);
|
|
2279
|
-
this.getUserInformation(this.incomingCallData);
|
|
2280
|
-
}
|
|
2281
|
-
else {
|
|
2282
|
-
this.isCallInProgress = true;
|
|
2283
|
-
this.isDialpadHidden = false;
|
|
2284
|
-
this.callData.phone = this.incomingCallData.parameters['From'];
|
|
2285
|
-
this.getUserInformation(this.incomingCallData);
|
|
2286
|
-
this.callData.name = this.incomingCallData.customParameters.get('name');
|
|
2287
|
-
this.callData.img = this.incomingCallData.customParameters.get('image') || 'assets/images/user.jpg';
|
|
2288
|
-
this.callData.isIncomingCall = true;
|
|
2289
|
-
}
|
|
2290
|
-
this.incomingCallData.on('cancel', () => {
|
|
2291
|
-
this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2292
|
-
if (this.incomingCallsList.length == 0) {
|
|
2293
|
-
this.isCallInProgress = false;
|
|
2294
|
-
}
|
|
2295
|
-
});
|
|
2296
|
-
this.incomingCallData.on('disconnect', () => {
|
|
2297
|
-
this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2298
|
-
if (this.incomingCallsList.length == 0) {
|
|
2299
|
-
this.isCallInProgress = false;
|
|
2300
|
-
}
|
|
2301
|
-
});
|
|
2302
|
-
}
|
|
2303
2274
|
this.subscriptions.add(callSub);
|
|
2304
2275
|
}
|
|
2305
2276
|
// ngOnChange() {
|
|
@@ -2534,6 +2505,35 @@ class DialboxComponent {
|
|
|
2534
2505
|
this.dialInputElement.nativeElement.focus();
|
|
2535
2506
|
}, 0);
|
|
2536
2507
|
}
|
|
2508
|
+
if (this.incomingCallData) {
|
|
2509
|
+
// this.isCallInProgress = true;
|
|
2510
|
+
// this.isDialpadHidden = false; // Show dialpad on incoming call
|
|
2511
|
+
if (this.isCallInProgress) {
|
|
2512
|
+
this.newIncomingCalls.push(this.incomingCallData);
|
|
2513
|
+
this.getUserInformation(this.incomingCallData);
|
|
2514
|
+
}
|
|
2515
|
+
else {
|
|
2516
|
+
this.isCallInProgress = true;
|
|
2517
|
+
this.isDialpadHidden = false;
|
|
2518
|
+
this.callData.phone = this.incomingCallData.parameters['From'];
|
|
2519
|
+
this.getUserInformation(this.incomingCallData);
|
|
2520
|
+
this.callData.name = this.incomingCallData.customParameters.get('name');
|
|
2521
|
+
this.callData.img = this.incomingCallData.customParameters.get('image') || 'assets/images/user.jpg';
|
|
2522
|
+
this.callData.isIncomingCall = true;
|
|
2523
|
+
}
|
|
2524
|
+
this.incomingCallData.on('cancel', () => {
|
|
2525
|
+
this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2526
|
+
if (this.incomingCallsList.length == 0) {
|
|
2527
|
+
this.isCallInProgress = false;
|
|
2528
|
+
}
|
|
2529
|
+
});
|
|
2530
|
+
this.incomingCallData.on('disconnect', () => {
|
|
2531
|
+
this.incomingCallsList = this.incomingCallsList.filter((item) => item.parameters['CallSid'] !== this.incomingCallData.parameters['CallSid']);
|
|
2532
|
+
if (this.incomingCallsList.length == 0) {
|
|
2533
|
+
this.isCallInProgress = false;
|
|
2534
|
+
}
|
|
2535
|
+
});
|
|
2536
|
+
}
|
|
2537
2537
|
}
|
|
2538
2538
|
registerDragElement() {
|
|
2539
2539
|
try {
|