@webex/plugin-meetings 3.12.0-next.35 → 3.12.0-next.37

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.
@@ -570,6 +570,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
570
570
  trigger: data.eventType === _constants.LOCUSEVENT.SDK_LOCUS_FROM_SYNC_MEETINGS ? 'get-loci-response' : 'locus-message',
571
571
  locus: data.locus,
572
572
  hashTreeMessage: data.stateElementsMessage
573
+ }, function (locus) {
574
+ meeting.finalizeMeetingAfterInitialLocusSetup(locus);
573
575
  });
574
576
  case 2:
575
577
  _context3.next = 4;
@@ -1564,6 +1566,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1564
1566
  isMeetingActive,
1565
1567
  enableUnifiedMeetings,
1566
1568
  meetingInfoOptions,
1569
+ shouldDeferMeetingInfoFetch,
1567
1570
  meetingAddedType,
1568
1571
  _args4 = arguments,
1569
1572
  _t2;
@@ -1618,16 +1621,17 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1618
1621
  extraParams: infoExtraParams,
1619
1622
  sendCAevents: !!(callStateForMetrics !== null && callStateForMetrics !== void 0 && callStateForMetrics.correlationId) // if client sends correlation id as argument of public create(), then it means that this meeting creation is part of a pre-join intent from user
1620
1623
  };
1624
+ shouldDeferMeetingInfoFetch = type === _constants.DESTINATION_TYPE.LOCUS_ID && !(destination !== null && destination !== void 0 && destination.info);
1621
1625
  if (!meetingInfo) {
1622
1626
  _context4.next = 2;
1623
1627
  break;
1624
1628
  }
1625
1629
  meeting.injectMeetingInfo(meetingInfo, meetingInfoOptions, meetingLookupUrl);
1626
- _context4.next = 4;
1630
+ _context4.next = 6;
1627
1631
  break;
1628
1632
  case 2:
1629
1633
  if (!(type !== _constants.DESTINATION_TYPE.ONE_ON_ONE_CALL)) {
1630
- _context4.next = 4;
1634
+ _context4.next = 6;
1631
1635
  break;
1632
1636
  }
1633
1637
  if (!(enableUnifiedMeetings && !isMeetingActive && useRandomDelayForInfo && waitingTime > 0)) {
@@ -1638,37 +1642,46 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1638
1642
  return meeting.fetchMeetingInfo(meetingInfoOptions);
1639
1643
  }, waitingTime);
1640
1644
  meeting.parseMeetingInfo(undefined, destination);
1641
- _context4.next = 4;
1645
+ _context4.next = 6;
1642
1646
  break;
1643
1647
  case 3:
1648
+ if (shouldDeferMeetingInfoFetch) {
1649
+ _context4.next = 5;
1650
+ break;
1651
+ }
1644
1652
  _context4.next = 4;
1645
1653
  return meeting.fetchMeetingInfo(meetingInfoOptions);
1646
1654
  case 4:
1647
- _context4.next = 8;
1655
+ _context4.next = 6;
1648
1656
  break;
1649
1657
  case 5:
1650
- _context4.prev = 5;
1658
+ _loggerProxy.default.logger.info('Meetings:index#createMeeting --> defer fetchMeetingInfo for incomplete locus, will do it after locus initialSetup');
1659
+ case 6:
1660
+ _context4.next = 10;
1661
+ break;
1662
+ case 7:
1663
+ _context4.prev = 7;
1651
1664
  _t2 = _context4["catch"](1);
1652
1665
  if (!(!(_t2 instanceof _captchaError.default) && !(_t2 instanceof _passwordError.default) && !(_t2 instanceof _permission.default) && !(_t2 instanceof _joinWebinarError.default) && !(_t2 instanceof _joinForbiddenError.default))) {
1653
- _context4.next = 7;
1666
+ _context4.next = 9;
1654
1667
  break;
1655
1668
  }
1656
1669
  _loggerProxy.default.logger.info("Meetings:index#createMeeting --> Info Unable to fetch meeting info for ".concat(destination, "."));
1657
1670
  if (!failOnMissingMeetingInfo) {
1658
- _context4.next = 6;
1671
+ _context4.next = 8;
1659
1672
  break;
1660
1673
  }
1661
1674
  _loggerProxy.default.logger.info("Meetings:index#createMeeting --> Destroying meeting due to missing meeting info.");
1662
1675
  // @ts-ignore
1663
1676
  this.destroy(meeting, _constants.MEETING_REMOVED_REASON.MISSING_MEETING_INFO);
1664
1677
  throw new _noMeetingInfo.default();
1665
- case 6:
1678
+ case 8:
1666
1679
  // if there is no meeting info and no error should be thrown then we assume its a 1:1 call or wireless share
1667
1680
  _loggerProxy.default.logger.info('Meetings:index#createMeeting --> Info assuming this destination is a 1:1 or wireless share');
1668
- case 7:
1681
+ case 9:
1669
1682
  _loggerProxy.default.logger.debug("Meetings:index#createMeeting --> Debug ".concat(_t2, " fetching /meetingInfo for creation."));
1670
- case 8:
1671
- _context4.prev = 8;
1683
+ case 10:
1684
+ _context4.prev = 10;
1672
1685
  // For type LOCUS_ID we need to parse the locus object to get the information
1673
1686
  // about the caller and callee
1674
1687
  // Meeting Added event will be created in `handleLocusEvent`
@@ -1692,14 +1705,14 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1692
1705
  type: meetingAddedType
1693
1706
  });
1694
1707
  }
1695
- return _context4.finish(8);
1696
- case 9:
1708
+ return _context4.finish(10);
1709
+ case 11:
1697
1710
  return _context4.abrupt("return", meeting);
1698
- case 10:
1711
+ case 12:
1699
1712
  case "end":
1700
1713
  return _context4.stop();
1701
1714
  }
1702
- }, _callee4, this, [[1, 5, 8, 9]]);
1715
+ }, _callee4, this, [[1, 7, 10, 11]]);
1703
1716
  }));
1704
1717
  function createMeeting(_x4) {
1705
1718
  return _createMeeting.apply(this, arguments);