@vgroup/dialbox 0.7.97 → 0.7.98
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.
|
@@ -4888,13 +4888,13 @@ class DialboxComponent {
|
|
|
4888
4888
|
}
|
|
4889
4889
|
// Filter out conferences with no participants
|
|
4890
4890
|
incomingCallData = incomingCallData?.length > 0
|
|
4891
|
-
? incomingCallData.filter((item) => item.participants?.length > 0
|
|
4891
|
+
? incomingCallData.filter((item) => item.participants?.length > 0)
|
|
4892
4892
|
: [];
|
|
4893
4893
|
// All conferenceIds received from socket this tick
|
|
4894
4894
|
const socketConferenceIds = incomingCallData.map((c) => c.conferenceId);
|
|
4895
4895
|
incomingCallData.forEach((callInfo) => {
|
|
4896
4896
|
// Check if WE are an active participant in this conference
|
|
4897
|
-
const ourNumber = callInfo?.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.direction == 'outgoing-call' && resData?.client) ||
|
|
4897
|
+
const ourNumber = callInfo?.participants.find((resData) => ((this.deviceNumberList.includes(resData?.from) && resData?.direction == 'outgoing-call' && resData?.client && (resData?.host && callInfo.callSource == 'Dialpad' || !resData?.host)) ||
|
|
4898
4898
|
(this.deviceNumberList.includes(resData?.to) && resData?.direction == 'incoming-call' && resData?.client)) && !resData?.isLeft);
|
|
4899
4899
|
// Match the ACTIVE conference entry only — never a pending incoming-call
|
|
4900
4900
|
// notification, which can share this conferenceId but must not be overwritten
|