@vgroup/dialbox 0.1.16 → 0.1.18
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.
- package/esm2020/lib/dialbox.component.mjs +3 -6
- package/esm2020/lib/service/twilio.service.mjs +2 -1
- package/fesm2015/vgroup-dialbox.mjs +3 -5
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +3 -5
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1427,6 +1427,7 @@ class TwilioService {
|
|
|
1427
1427
|
allowIncomingWhileBusy: true,
|
|
1428
1428
|
closeProtection: true
|
|
1429
1429
|
});
|
|
1430
|
+
console.log("device created");
|
|
1430
1431
|
this.device.register();
|
|
1431
1432
|
this.device.on('incoming', (call) => {
|
|
1432
1433
|
this.currentCall.next(call);
|
|
@@ -2233,9 +2234,9 @@ class DialboxComponent {
|
|
|
2233
2234
|
this.isInitialized = false;
|
|
2234
2235
|
this.isMinimised = false;
|
|
2235
2236
|
// Initialize if dialpad is visible by default
|
|
2236
|
-
this.initializeTwilio();
|
|
2237
2237
|
if (!this.isDialpadHidden) {
|
|
2238
2238
|
console.log('sfsdfdsf');
|
|
2239
|
+
this.initializeTwilio();
|
|
2239
2240
|
}
|
|
2240
2241
|
}
|
|
2241
2242
|
initializeTwilio() {
|
|
@@ -2258,9 +2259,6 @@ class DialboxComponent {
|
|
|
2258
2259
|
});
|
|
2259
2260
|
this.subscriptions.add(callSub);
|
|
2260
2261
|
}
|
|
2261
|
-
setTimeout(() => {
|
|
2262
|
-
this.isInitialized = false;
|
|
2263
|
-
}, 1000);
|
|
2264
2262
|
}
|
|
2265
2263
|
// ngOnChange() {
|
|
2266
2264
|
// this.initializeTwilio();
|
|
@@ -2482,7 +2480,7 @@ class DialboxComponent {
|
|
|
2482
2480
|
if (!alreadyExists) {
|
|
2483
2481
|
this.incomingCallsList.push(incomingCallData);
|
|
2484
2482
|
}
|
|
2485
|
-
this.cdk.
|
|
2483
|
+
this.cdk.detectChanges();
|
|
2486
2484
|
}, error => {
|
|
2487
2485
|
console.error('Error starting recording', error);
|
|
2488
2486
|
});
|