@vgroup/dialbox 0.7.13 → 0.7.14

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.
@@ -1926,7 +1926,7 @@ class CallProgressComponent {
1926
1926
  this.deviceNumberList = this.callerIdList.map((res) => res.number);
1927
1927
  }
1928
1928
  ngOnChanges(changes) {
1929
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11;
1929
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13;
1930
1930
  if (this.userId) {
1931
1931
  this.extensionService.userId = this.userId;
1932
1932
  }
@@ -2242,10 +2242,13 @@ class CallProgressComponent {
2242
2242
  }
2243
2243
  if (((_8 = changes['callAction']) === null || _8 === void 0 ? void 0 : _8.currentValue) && ((_9 = this.callAction) === null || _9 === void 0 ? void 0 : _9.type) == 'reJoin') {
2244
2244
  this.deviceNumberList = this.callerIdList.map((res) => res.number);
2245
- this.rejoinHost(this.callAction);
2245
+ let data = (_10 = this.newIncomingCallsList.find((item) => { var _a; return (item === null || item === void 0 ? void 0 : item.conferenceId) == ((_a = this.callAction) === null || _a === void 0 ? void 0 : _a.conferenceId); })) === null || _10 === void 0 ? void 0 : _10.participants.find((resData) => resData === null || resData === void 0 ? void 0 : resData.host);
2246
+ if ((data === null || data === void 0 ? void 0 : data.isLeft) || !((_11 = this.newIncomingCallsList) === null || _11 === void 0 ? void 0 : _11.length)) {
2247
+ this.rejoinHost(this.callAction);
2248
+ }
2246
2249
  }
2247
- if ((_10 = changes['newCallConference']) === null || _10 === void 0 ? void 0 : _10.currentValue) {
2248
- this.CallToUnsavedNumber((_11 = this.newCallConference) === null || _11 === void 0 ? void 0 : _11.number, true);
2250
+ if ((_12 = changes['newCallConference']) === null || _12 === void 0 ? void 0 : _12.currentValue) {
2251
+ this.CallToUnsavedNumber((_13 = this.newCallConference) === null || _13 === void 0 ? void 0 : _13.number, true);
2249
2252
  }
2250
2253
  }
2251
2254
  rejoinHost(callInfo) {