@vgroup/dialbox 0.0.58 → 0.0.60
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.
|
@@ -2223,6 +2223,14 @@ class DialboxComponent {
|
|
|
2223
2223
|
try {
|
|
2224
2224
|
this.getContactList();
|
|
2225
2225
|
this.getUserCallSetting();
|
|
2226
|
+
// Subscribe to incoming calls and show dialpad when a call comes in
|
|
2227
|
+
this.subscriptions.add(this.twilioService.currentCall.subscribe((call) => {
|
|
2228
|
+
if (call && call.parameters && call.parameters.Direction === 'incoming') {
|
|
2229
|
+
// Show the dialpad when an incoming call is received
|
|
2230
|
+
this._isDialpadHidden = false;
|
|
2231
|
+
this.incomingCallInitiated.emit();
|
|
2232
|
+
}
|
|
2233
|
+
}));
|
|
2226
2234
|
// Subscribe to dial number events
|
|
2227
2235
|
const sub1 = this.twilioService.dialNumberFromOtherModule.subscribe((contact) => {
|
|
2228
2236
|
if (contact.number) {
|