@vgroup/dialbox 0.6.8 → 0.6.10

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.
@@ -3686,11 +3686,11 @@ class DialboxComponent {
3686
3686
  ngOnChanges(changes) {
3687
3687
  if (changes['incomingCallnotification']?.currentValue && this.incomingCallnotification) {
3688
3688
  this.isIncomingCallnotification = true;
3689
- if (this.incomingCallnotification.data.content == "IncomingCall") {
3689
+ if (this.incomingCallnotification.data.content == "IncomingCall" && this.incomingCallnotification.data.data.status != "rejected") {
3690
3690
  let callerInfo;
3691
3691
  let numberList = this.callerIdList.map((res) => res.number);
3692
3692
  if (!numberList.includes(this.incomingCallnotification.data.data?.fromNumber)) {
3693
- if (this.incomingCallnotification.data.data?.c2cBusiness != 'false') {
3693
+ if (this.incomingCallnotification.data?.data?.c2cBusiness != 'false' && this.incomingCallnotification.data.data?.participantId) {
3694
3694
  this.extensionService.getUserInformation(this.incomingCallnotification.data.data?.participantId).subscribe((resInfo) => {
3695
3695
  callerInfo = resInfo?.c2cInformation || {};
3696
3696
  this.incomingCallNotification(callerInfo);