@vgroup/dialbox 0.1.112 → 0.1.113
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/components/call-progress/call-progress.component.mjs +9 -2
- package/fesm2015/vgroup-dialbox.mjs +8 -1
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +8 -1
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/components/call-progress/call-progress.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1941,6 +1941,7 @@ class CallProgressComponent {
|
|
|
1941
1941
|
this.disbaleEndCallBtn = true;
|
|
1942
1942
|
this.showClearBtn = false;
|
|
1943
1943
|
this.isCollops = false;
|
|
1944
|
+
this.isOutgoingCall = false;
|
|
1944
1945
|
// Incoming call variables
|
|
1945
1946
|
this.incomingCallDiv = false;
|
|
1946
1947
|
//@Output() showCallProgressEvent: EventEmitter<void> = new EventEmitter<void>();
|
|
@@ -2137,7 +2138,12 @@ class CallProgressComponent {
|
|
|
2137
2138
|
this.call?.on('disconnect', (item) => {
|
|
2138
2139
|
console.log('test4');
|
|
2139
2140
|
console.log(item);
|
|
2140
|
-
|
|
2141
|
+
if (this.isOutgoingCall) {
|
|
2142
|
+
this.endCall();
|
|
2143
|
+
}
|
|
2144
|
+
else {
|
|
2145
|
+
this.isOutgoingCall = true;
|
|
2146
|
+
}
|
|
2141
2147
|
});
|
|
2142
2148
|
this.call?.on('ringing', () => {
|
|
2143
2149
|
});
|
|
@@ -2228,6 +2234,7 @@ class CallProgressComponent {
|
|
|
2228
2234
|
// }
|
|
2229
2235
|
// }
|
|
2230
2236
|
endCall() {
|
|
2237
|
+
this.isOutgoingCall = false;
|
|
2231
2238
|
console.log('endCall() called');
|
|
2232
2239
|
console.log('Current call:', this.call?.parameters['From']);
|
|
2233
2240
|
console.log('Held call exists:', !!this.heldCall);
|