@webex/plugin-meetings 3.12.0-next.23 → 3.12.0-next.25
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.
- package/dist/aiEnableRequest/index.js +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/constants.js +3 -1
- package/dist/constants.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +64 -45
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/index.js +1 -2
- package/dist/locus-info/index.js.map +1 -1
- package/dist/meetings/index.js +8 -8
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/util.js +18 -3
- package/dist/meetings/util.js.map +1 -1
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +1 -1
- package/dist/webinar/index.js +1 -1
- package/package.json +1 -1
- package/src/constants.ts +1 -0
- package/src/hashTree/hashTreeParser.ts +61 -51
- package/src/locus-info/index.ts +1 -1
- package/src/meetings/index.ts +2 -2
- package/src/meetings/util.ts +18 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +26 -0
- package/test/unit/spec/locus-info/index.js +8 -33
- package/test/unit/spec/meetings/index.js +27 -0
- package/test/unit/spec/meetings/utils.js +16 -0
package/dist/meetings/index.js
CHANGED
|
@@ -354,11 +354,11 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
354
354
|
return (0, _createClass2.default)(Meetings, [{
|
|
355
355
|
key: "isNeedHandleMainLocus",
|
|
356
356
|
value: function isNeedHandleMainLocus(meeting, newLocus) {
|
|
357
|
-
var _newLocus$controls, _newLocus$controls$br, _newLocus$self,
|
|
357
|
+
var _newLocus$controls, _newLocus$controls$br, _newLocus$self, _breakoutLocus$joined, _newLocus$self2;
|
|
358
358
|
var breakoutUrl = (_newLocus$controls = newLocus.controls) === null || _newLocus$controls === void 0 ? void 0 : (_newLocus$controls$br = _newLocus$controls.breakout) === null || _newLocus$controls$br === void 0 ? void 0 : _newLocus$controls$br.url;
|
|
359
359
|
var breakoutLocus = this.meetingCollection.getActiveBreakoutLocus(breakoutUrl);
|
|
360
360
|
var isSelfJoined = (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self = newLocus.self) === null || _newLocus$self === void 0 ? void 0 : _newLocus$self.state) === _constants._JOINED_;
|
|
361
|
-
var isSelfMoved =
|
|
361
|
+
var isSelfMoved = _util2.default.isSelfMovedOrBreakoutEnded(newLocus);
|
|
362
362
|
// @ts-ignore
|
|
363
363
|
var deviceFromNewLocus = _util2.default.getThisDevice(newLocus, this.webex.internal.device.url);
|
|
364
364
|
var isResourceMovedOnThisDevice = (deviceFromNewLocus === null || deviceFromNewLocus === void 0 ? void 0 : deviceFromNewLocus.state) === _constants._LEFT_ && (deviceFromNewLocus === null || deviceFromNewLocus === void 0 ? void 0 : deviceFromNewLocus.reason) === _constants._MOVED_;
|
|
@@ -383,7 +383,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
383
383
|
_loggerProxy.default.logger.log("Meetings:index#isNeedHandleMainLocus --> there is active breakout session and joined on this device, and don't need to handle main session: ".concat(breakoutUrl));
|
|
384
384
|
return false;
|
|
385
385
|
}
|
|
386
|
-
if (isSelfMoved && (newLocus !== null && newLocus !== void 0 && (_newLocus$
|
|
386
|
+
if (isSelfMoved && (newLocus !== null && newLocus !== void 0 && (_newLocus$self2 = newLocus.self) !== null && _newLocus$self2 !== void 0 && _newLocus$self2.removed || isResourceMovedOnThisDevice)) {
|
|
387
387
|
_loggerProxy.default.logger.log('Meetings:index#isNeedHandleMainLocus --> self moved main locus with self removed status or with device resource moved, not need to handle');
|
|
388
388
|
return false;
|
|
389
389
|
}
|
|
@@ -407,15 +407,15 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
407
407
|
key: "isNeedHandleLocusDTO",
|
|
408
408
|
value: function isNeedHandleLocusDTO(meeting, newLocus) {
|
|
409
409
|
if (newLocus) {
|
|
410
|
-
var _newLocus$
|
|
410
|
+
var _newLocus$self3, _newLocus$self3$devic, _newLocus$self3$devic2, _newLocus$self4, _newLocus$self4$devic, _newLocus$self4$devic2;
|
|
411
411
|
var isNewLocusAsBreakout = _util2.default.isBreakoutLocusDTO(newLocus);
|
|
412
|
-
var isSelfMoved =
|
|
413
|
-
var isSelfMovedToLobby = (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$
|
|
412
|
+
var isSelfMoved = _util2.default.isSelfMovedOrBreakoutEnded(newLocus);
|
|
413
|
+
var isSelfMovedToLobby = (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self3 = newLocus.self) === null || _newLocus$self3 === void 0 ? void 0 : (_newLocus$self3$devic = _newLocus$self3.devices[0]) === null || _newLocus$self3$devic === void 0 ? void 0 : (_newLocus$self3$devic2 = _newLocus$self3$devic.intent) === null || _newLocus$self3$devic2 === void 0 ? void 0 : _newLocus$self3$devic2.reason) === _constants._ON_HOLD_LOBBY_ && (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self4 = newLocus.self) === null || _newLocus$self4 === void 0 ? void 0 : (_newLocus$self4$devic = _newLocus$self4.devices[0]) === null || _newLocus$self4$devic === void 0 ? void 0 : (_newLocus$self4$devic2 = _newLocus$self4$devic.intent) === null || _newLocus$self4$devic2 === void 0 ? void 0 : _newLocus$self4$devic2.type) === _constants._WAIT_;
|
|
414
414
|
if (!meeting) {
|
|
415
415
|
if (isNewLocusAsBreakout) {
|
|
416
|
-
var _newLocus$fullState, _newLocus$
|
|
416
|
+
var _newLocus$fullState, _newLocus$self5;
|
|
417
417
|
_loggerProxy.default.logger.log("Meetings:index#isNeedHandleLocusDTO --> the first breakout session locusDTO active status: ".concat((_newLocus$fullState = newLocus.fullState) === null || _newLocus$fullState === void 0 ? void 0 : _newLocus$fullState.active));
|
|
418
|
-
return ((_newLocus$
|
|
418
|
+
return ((_newLocus$self5 = newLocus.self) === null || _newLocus$self5 === void 0 ? void 0 : _newLocus$self5.state) === _constants._JOINED_;
|
|
419
419
|
}
|
|
420
420
|
return this.isNeedHandleMainLocus(meeting, newLocus);
|
|
421
421
|
}
|