@vgroup/dialbox 0.7.60 → 0.7.63
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.
|
@@ -4631,12 +4631,8 @@ class DialboxComponent {
|
|
|
4631
4631
|
// All conferenceIds received from socket this tick
|
|
4632
4632
|
const socketConferenceIds = incomingCallData.map((c) => c.conferenceId);
|
|
4633
4633
|
incomingCallData.forEach((callInfo) => {
|
|
4634
|
-
var _a
|
|
4634
|
+
var _a;
|
|
4635
4635
|
// Check if WE are an active participant in this conference
|
|
4636
|
-
if (!((_a = callInfo === null || callInfo === void 0 ? void 0 : callInfo.participants) === null || _a === void 0 ? void 0 : _a.length) && !this.nullParticipantCallList.includes(callInfo === null || callInfo === void 0 ? void 0 : callInfo.conferenceId)) {
|
|
4637
|
-
this.nullParticipantCallList.push(callInfo === null || callInfo === void 0 ? void 0 : callInfo.conferenceId);
|
|
4638
|
-
swal("Error", 'Call not connected facing some issue', "error");
|
|
4639
|
-
}
|
|
4640
4636
|
const ourNumber = callInfo === null || callInfo === void 0 ? void 0 : callInfo.participants.find((resData) => ((this.deviceNumberList.includes(resData === null || resData === void 0 ? void 0 : resData.from) && (resData === null || resData === void 0 ? void 0 : resData.direction) == 'outgoing-call' && (resData === null || resData === void 0 ? void 0 : resData.client)) ||
|
|
4641
4637
|
(this.deviceNumberList.includes(resData === null || resData === void 0 ? void 0 : resData.to) && (resData === null || resData === void 0 ? void 0 : resData.direction) == 'incoming-call' && (resData === null || resData === void 0 ? void 0 : resData.client) &&
|
|
4642
4638
|
(resData === null || resData === void 0 ? void 0 : resData.callStatus) !== 'completed' &&
|
|
@@ -4661,7 +4657,7 @@ class DialboxComponent {
|
|
|
4661
4657
|
}
|
|
4662
4658
|
else {
|
|
4663
4659
|
// We are NOT a participant — remove from incomingCallsList only if it is NOT an incoming-call notification
|
|
4664
|
-
if (callIndex > -1 && ((
|
|
4660
|
+
if (callIndex > -1 && ((_a = this.incomingCallsList[callIndex]) === null || _a === void 0 ? void 0 : _a.direction) !== 'incoming-call') {
|
|
4665
4661
|
// FIX: splice(index, deleteCount) — was incorrectly splice(1, callIndex)
|
|
4666
4662
|
this.incomingCallsList.splice(callIndex, 1);
|
|
4667
4663
|
}
|