@vgroup/dialbox 0.5.4 → 0.5.6
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 +3 -3
- package/esm2020/lib/dialbox.component.mjs +4 -4
- package/fesm2015/vgroup-dialbox.mjs +8 -8
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +5 -5
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1932,8 +1932,8 @@ class CallProgressComponent {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
});
|
|
1934
1934
|
let currentCall = this.currentCallList.find((item) => item.isAcceptCall && !item.isHold);
|
|
1935
|
-
if (currentCall?.id) {
|
|
1936
|
-
this.currentCall = currentCall;
|
|
1935
|
+
if (currentCall?.id || this.currentCallList.length == 1) {
|
|
1936
|
+
this.currentCall = currentCall || this.currentCallList[0];
|
|
1937
1937
|
}
|
|
1938
1938
|
if (this.selectedUserInfo?.participantId) {
|
|
1939
1939
|
let selectedUser = this.currentCallList.find((item) => item.id == this.selectedUserInfo.participantId);
|
|
@@ -3825,7 +3825,7 @@ class DialboxComponent {
|
|
|
3825
3825
|
this.registerDragElement();
|
|
3826
3826
|
}
|
|
3827
3827
|
ngOnChanges(changes) {
|
|
3828
|
-
if (changes['incomingCallnotification']
|
|
3828
|
+
if (changes['incomingCallnotification']?.currentValue && this.incomingCallnotification) {
|
|
3829
3829
|
this.isIncomingCallnotification = true;
|
|
3830
3830
|
// let payload = {
|
|
3831
3831
|
// recordId: this.incomingCallnotification.data.data.participantId,
|
|
@@ -3872,10 +3872,10 @@ class DialboxComponent {
|
|
|
3872
3872
|
this.twilioService.deviceId = changes['deviceId'].currentValue;
|
|
3873
3873
|
console.log('Set deviceId in localStorage:', changes['deviceId'].currentValue);
|
|
3874
3874
|
}
|
|
3875
|
-
if (changes['userId']
|
|
3875
|
+
if (changes['userId']?.currentValue && this.userId) {
|
|
3876
3876
|
this.extensionService.userId = this.userId;
|
|
3877
3877
|
}
|
|
3878
|
-
if (changes['contactInfo'] && this.contactInfo) {
|
|
3878
|
+
if (changes['contactInfo']?.currentValue && this.contactInfo) {
|
|
3879
3879
|
let contact = this.contactInfo;
|
|
3880
3880
|
console.log('contactInfo', contact);
|
|
3881
3881
|
if (contact.number) {
|