@webex/plugin-meetings 3.8.0-web-workers-keepalive.1 → 3.8.1-next.1
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/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +70 -6
- package/dist/breakouts/index.js.map +1 -1
- package/dist/common/errors/webex-errors.js +12 -2
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/config.js +4 -1
- package/dist/config.js.map +1 -1
- package/dist/constants.js +22 -123
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/enums.js +2 -0
- package/dist/controls-options-manager/enums.js.map +1 -1
- package/dist/controls-options-manager/types.js.map +1 -1
- package/dist/controls-options-manager/util.js +52 -0
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/controlsUtils.js +30 -10
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +83 -12
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/selfUtils.js +432 -418
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.js +17 -17
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +94 -6
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/brbState.js +9 -2
- package/dist/meeting/brbState.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +17 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +568 -328
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +0 -17
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.js +4 -4
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +30 -0
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js.map +1 -1
- package/dist/meeting/util.js +9 -1
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +19 -13
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/utilv2.js +5 -1
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/index.js +76 -0
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/util.js +14 -0
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +45 -9
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js +3 -0
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js +335 -356
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.js +137 -29
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +38 -0
- package/dist/members/request.js.map +1 -1
- package/dist/members/util.js +36 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +1 -0
- package/dist/metrics/constants.js.map +1 -1
- package/dist/reachability/clusterReachability.js +23 -31
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +42 -2
- package/dist/reachability/index.js.map +1 -1
- package/dist/reconnection-manager/index.js +2 -2
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/turnDiscovery.js +45 -27
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/roap/types.js +17 -0
- package/dist/roap/types.js.map +1 -0
- package/dist/types/common/errors/webex-errors.d.ts +7 -1
- package/dist/types/config.d.ts +2 -0
- package/dist/types/constants.d.ts +15 -85
- package/dist/types/controls-options-manager/enums.d.ts +3 -1
- package/dist/types/controls-options-manager/types.d.ts +7 -1
- package/dist/types/locus-info/index.d.ts +3 -3
- package/dist/types/locus-info/selfUtils.d.ts +216 -1
- package/dist/types/media/properties.d.ts +15 -0
- package/dist/types/meeting/in-meeting-actions.d.ts +16 -0
- package/dist/types/meeting/index.d.ts +35 -1
- package/dist/types/meeting/muteState.d.ts +0 -1
- package/dist/types/meeting/request.d.ts +12 -1
- package/dist/types/meeting/request.type.d.ts +6 -0
- package/dist/types/meeting/util.d.ts +3 -1
- package/dist/types/meeting-info/meeting-info-v2.d.ts +2 -1
- package/dist/types/meetings/index.d.ts +28 -0
- package/dist/types/member/index.d.ts +20 -6
- package/dist/types/member/types.d.ts +73 -14
- package/dist/types/member/util.d.ts +156 -1
- package/dist/types/members/collection.d.ts +6 -5
- package/dist/types/members/index.d.ts +32 -43
- package/dist/types/members/request.d.ts +26 -0
- package/dist/types/members/util.d.ts +27 -0
- package/dist/types/metrics/constants.d.ts +1 -0
- package/dist/types/reachability/clusterReachability.d.ts +2 -6
- package/dist/types/reachability/index.d.ts +8 -0
- package/dist/types/roap/index.d.ts +3 -2
- package/dist/types/roap/turnDiscovery.d.ts +5 -17
- package/dist/types/roap/types.d.ts +16 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +24 -23
- package/src/breakouts/index.ts +69 -0
- package/src/common/errors/webex-errors.ts +8 -1
- package/src/config.ts +2 -0
- package/src/constants.ts +23 -90
- package/src/controls-options-manager/enums.ts +2 -0
- package/src/controls-options-manager/types.ts +11 -1
- package/src/controls-options-manager/util.ts +62 -0
- package/src/locus-info/controlsUtils.ts +48 -12
- package/src/locus-info/index.ts +88 -13
- package/src/locus-info/selfUtils.ts +496 -442
- package/src/media/index.ts +23 -21
- package/src/media/properties.ts +96 -0
- package/src/meeting/brbState.ts +11 -2
- package/src/meeting/in-meeting-actions.ts +32 -0
- package/src/meeting/index.ts +356 -87
- package/src/meeting/locusMediaRequest.ts +0 -18
- package/src/meeting/muteState.ts +4 -4
- package/src/meeting/request.ts +36 -1
- package/src/meeting/request.type.ts +7 -0
- package/src/meeting/util.ts +9 -1
- package/src/meeting-info/meeting-info-v2.ts +7 -2
- package/src/meeting-info/utilv2.ts +5 -0
- package/src/meetings/index.ts +76 -0
- package/src/meetings/util.ts +18 -0
- package/src/member/index.ts +57 -22
- package/src/member/types.ts +82 -16
- package/src/member/util.ts +357 -353
- package/src/members/collection.ts +4 -3
- package/src/members/index.ts +137 -18
- package/src/members/request.ts +44 -0
- package/src/members/util.ts +43 -1
- package/src/metrics/constants.ts +1 -0
- package/src/reachability/clusterReachability.ts +26 -25
- package/src/reachability/index.ts +55 -1
- package/src/reconnection-manager/index.ts +2 -2
- package/src/roap/index.ts +3 -7
- package/src/roap/turnDiscovery.ts +34 -39
- package/src/roap/types.ts +23 -0
- package/test/unit/spec/breakouts/index.ts +167 -95
- package/test/unit/spec/controls-options-manager/util.js +120 -0
- package/test/unit/spec/locus-info/controlsUtils.js +131 -9
- package/test/unit/spec/locus-info/index.js +195 -73
- package/test/unit/spec/locus-info/selfUtils.js +98 -24
- package/test/unit/spec/media/index.ts +150 -18
- package/test/unit/spec/media/properties.ts +130 -0
- package/test/unit/spec/meeting/brbState.ts +40 -2
- package/test/unit/spec/meeting/in-meeting-actions.ts +19 -4
- package/test/unit/spec/meeting/index.js +553 -36
- package/test/unit/spec/meeting/locusMediaRequest.ts +0 -30
- package/test/unit/spec/meeting/muteState.js +73 -2
- package/test/unit/spec/meeting/request.js +32 -1
- package/test/unit/spec/meeting/utils.js +79 -33
- package/test/unit/spec/meeting-info/meetinginfov2.js +41 -0
- package/test/unit/spec/meeting-info/utilv2.js +19 -0
- package/test/unit/spec/meetings/index.js +68 -1
- package/test/unit/spec/members/index.js +304 -78
- package/test/unit/spec/members/request.js +68 -22
- package/test/unit/spec/members/utils.js +75 -0
- package/test/unit/spec/reachability/clusterReachability.ts +41 -55
- package/test/unit/spec/reachability/index.ts +89 -0
- package/test/unit/spec/reconnection-manager/index.js +4 -4
- package/test/unit/spec/roap/turnDiscovery.ts +110 -28
package/dist/locus-info/index.js
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _Reflect$construct = require("@babel/runtime-corejs2/core-js/reflect/construct");
|
4
|
+
var _Array$from = require("@babel/runtime-corejs2/core-js/array/from");
|
5
|
+
var _Symbol = require("@babel/runtime-corejs2/core-js/symbol");
|
6
|
+
var _Symbol$iterator = require("@babel/runtime-corejs2/core-js/symbol/iterator");
|
7
|
+
var _Array$isArray2 = require("@babel/runtime-corejs2/core-js/array/is-array");
|
4
8
|
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
5
9
|
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
6
10
|
_Object$defineProperty(exports, "__esModule", {
|
@@ -8,6 +12,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
8
12
|
});
|
9
13
|
exports.default = void 0;
|
10
14
|
var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
|
15
|
+
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/array/is-array"));
|
11
16
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
12
17
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
13
18
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/assertThisInitialized"));
|
@@ -29,6 +34,9 @@ var _mediaSharesUtils = _interopRequireDefault(require("./mediaSharesUtils"));
|
|
29
34
|
var _parser = _interopRequireDefault(require("./parser"));
|
30
35
|
var _metrics = _interopRequireDefault(require("../metrics"));
|
31
36
|
var _constants2 = _interopRequireDefault(require("../metrics/constants"));
|
37
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && o[_Symbol$iterator] || o["@@iterator"]; if (!it) { if (_Array$isArray2(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
38
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
39
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
32
40
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
33
41
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
34
42
|
/**
|
@@ -82,6 +90,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
82
90
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "services", void 0);
|
83
91
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "resources", void 0);
|
84
92
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mainSessionLocusCache", void 0);
|
93
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "self", void 0);
|
85
94
|
_this.parsedLocus = {
|
86
95
|
states: []
|
87
96
|
};
|
@@ -151,6 +160,17 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
151
160
|
} else {
|
152
161
|
meeting.locusInfo.onFullLocus(res.body);
|
153
162
|
}
|
163
|
+
}).catch(function (e) {
|
164
|
+
_loggerProxy.default.logger.info("Locus-info:index#doLocusSync --> getLocusDTO succeeded but failed to handle result, locus parser will resume but not all data may be synced (".concat(e.toString(), ")"));
|
165
|
+
_metrics.default.sendBehavioralMetric(_constants2.default.LOCUS_SYNC_HANDLING_FAILED, {
|
166
|
+
correlationId: meeting.correlationId,
|
167
|
+
url: url,
|
168
|
+
reason: e.message,
|
169
|
+
errorName: e.name,
|
170
|
+
stack: e.stack,
|
171
|
+
code: e.code
|
172
|
+
});
|
173
|
+
}).finally(function () {
|
154
174
|
// Notify parser to resume processing delta events.
|
155
175
|
// Any deltas in the queue that have now been superseded by this sync will simply be ignored
|
156
176
|
_this2.locusParser.resume();
|
@@ -265,7 +285,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
265
285
|
this.updateMeetingInfo(locus.info);
|
266
286
|
this.updateEmbeddedApps(locus.embeddedApps);
|
267
287
|
// self and participants generate sipUrl for 1:1 meeting
|
268
|
-
this.updateSelf(locus.self
|
288
|
+
this.updateSelf(locus.self);
|
269
289
|
this.updateHostInfo(locus.host);
|
270
290
|
this.updateMediaShares(locus.mediaShares);
|
271
291
|
this.updateServices((_locus$links = locus.links) === null || _locus$links === void 0 ? void 0 : _locus$links.services);
|
@@ -415,6 +435,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
415
435
|
key: "onDeltaLocus",
|
416
436
|
value: function onDeltaLocus(locus) {
|
417
437
|
var isReplaceMembers = _controlsUtils.default.isNeedReplaceMembers(this.controls, locus.controls);
|
438
|
+
this.mergeParticipants(this.participants, locus.participants);
|
418
439
|
this.updateLocusInfo(locus);
|
419
440
|
this.updateParticipants(locus.participants, isReplaceMembers);
|
420
441
|
this.isMeetingActive();
|
@@ -444,7 +465,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
444
465
|
this.updateMediaShares(locus.mediaShares);
|
445
466
|
this.updateParticipantsUrl(locus.participantsUrl);
|
446
467
|
this.updateReplace(locus.replace);
|
447
|
-
this.updateSelf(locus.self
|
468
|
+
this.updateSelf(locus.self);
|
448
469
|
this.updateLocusUrl(locus.url);
|
449
470
|
this.updateAclUrl(locus.aclUrl);
|
450
471
|
this.updateBasequence(locus.baseSequence);
|
@@ -721,6 +742,28 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
721
742
|
hostId: this.parsedLocus.host && this.parsedLocus.host.hostId,
|
722
743
|
isReplace: isReplace
|
723
744
|
});
|
745
|
+
if (participants && (0, _isArray.default)(participants) && participants.length > 0) {
|
746
|
+
var _iterator = _createForOfIteratorHelper(participants),
|
747
|
+
_step;
|
748
|
+
try {
|
749
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
750
|
+
var participant = _step.value;
|
751
|
+
if (participant && (participant === null || participant === void 0 ? void 0 : participant.reason) === 'FAILURE') {
|
752
|
+
var _participant$person;
|
753
|
+
this.emitScoped({
|
754
|
+
file: 'locus-info',
|
755
|
+
function: 'updateParticipants'
|
756
|
+
}, _constants.LOCUSINFO.EVENTS.PARTICIPANT_REASON_CHANGED, {
|
757
|
+
displayName: participant === null || participant === void 0 ? void 0 : (_participant$person = participant.person) === null || _participant$person === void 0 ? void 0 : _participant$person.primaryDisplayString
|
758
|
+
});
|
759
|
+
}
|
760
|
+
}
|
761
|
+
} catch (err) {
|
762
|
+
_iterator.e(err);
|
763
|
+
} finally {
|
764
|
+
_iterator.f();
|
765
|
+
}
|
766
|
+
}
|
724
767
|
}
|
725
768
|
|
726
769
|
/**
|
@@ -740,6 +783,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
740
783
|
hasRecordingPausedChanged = _ControlsUtils$getCon2.hasRecordingPausedChanged,
|
741
784
|
hasMeetingContainerChanged = _ControlsUtils$getCon2.hasMeetingContainerChanged,
|
742
785
|
hasTranscribeChanged = _ControlsUtils$getCon2.hasTranscribeChanged,
|
786
|
+
hasTranscribeSpokenLanguageChanged = _ControlsUtils$getCon2.hasTranscribeSpokenLanguageChanged,
|
743
787
|
hasManualCaptionChanged = _ControlsUtils$getCon2.hasManualCaptionChanged,
|
744
788
|
hasEntryExitToneChanged = _ControlsUtils$getCon2.hasEntryExitToneChanged,
|
745
789
|
hasBreakoutChanged = _ControlsUtils$getCon2.hasBreakoutChanged,
|
@@ -757,6 +801,8 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
757
801
|
hasMeetingFullChanged = _ControlsUtils$getCon2.hasMeetingFullChanged,
|
758
802
|
hasPracticeSessionEnabledChanged = _ControlsUtils$getCon2.hasPracticeSessionEnabledChanged,
|
759
803
|
hasStageViewChanged = _ControlsUtils$getCon2.hasStageViewChanged,
|
804
|
+
hasAnnotationControlChanged = _ControlsUtils$getCon2.hasAnnotationControlChanged,
|
805
|
+
hasRemoteDesktopControlChanged = _ControlsUtils$getCon2.hasRemoteDesktopControlChanged,
|
760
806
|
current = _ControlsUtils$getCon.current;
|
761
807
|
if (hasMuteOnEntryChanged) {
|
762
808
|
this.emitScoped({
|
@@ -856,6 +902,15 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
856
902
|
caption: caption
|
857
903
|
});
|
858
904
|
}
|
905
|
+
if (hasTranscribeSpokenLanguageChanged) {
|
906
|
+
var spokenLanguage = current.transcribe.spokenLanguage;
|
907
|
+
this.emitScoped({
|
908
|
+
file: 'locus-info',
|
909
|
+
function: 'updateControls'
|
910
|
+
}, _constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_TRANSCRIPTION_SPOKEN_LANGUAGE_UPDATED, {
|
911
|
+
spokenLanguage: spokenLanguage
|
912
|
+
});
|
913
|
+
}
|
859
914
|
if (hasManualCaptionChanged) {
|
860
915
|
var enabled = current.manualCaptionControl.enabled;
|
861
916
|
this.emitScoped({
|
@@ -944,6 +999,22 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
944
999
|
state: current.videoLayout
|
945
1000
|
});
|
946
1001
|
}
|
1002
|
+
if (hasAnnotationControlChanged) {
|
1003
|
+
this.emitScoped({
|
1004
|
+
file: 'locus-info',
|
1005
|
+
function: 'updateControls'
|
1006
|
+
}, _constants.LOCUSINFO.EVENTS.CONTROLS_ANNOTATION_CHANGED, {
|
1007
|
+
state: current.annotationControl
|
1008
|
+
});
|
1009
|
+
}
|
1010
|
+
if (hasRemoteDesktopControlChanged) {
|
1011
|
+
this.emitScoped({
|
1012
|
+
file: 'locus-info',
|
1013
|
+
function: 'updateControls'
|
1014
|
+
}, _constants.LOCUSINFO.EVENTS.CONTROLS_REMOTE_DESKTOP_CONTROL_CHANGED, {
|
1015
|
+
state: current.rdcControl
|
1016
|
+
});
|
1017
|
+
}
|
947
1018
|
this.controls = controls;
|
948
1019
|
}
|
949
1020
|
}
|
@@ -1204,19 +1275,19 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
1204
1275
|
|
1205
1276
|
/**
|
1206
1277
|
* handles when the locus.self is updated
|
1207
|
-
* @param {Object} self the locus.
|
1208
|
-
* @param {Array} participants the locus.participants property
|
1278
|
+
* @param {Object} self the new locus.self
|
1209
1279
|
* @returns {undefined}
|
1210
1280
|
* @memberof LocusInfo
|
1211
1281
|
* emits internal events self_admitted_guest, self_unadmitted_guest, locus_info_update_self
|
1212
1282
|
*/
|
1213
1283
|
}, {
|
1214
1284
|
key: "updateSelf",
|
1215
|
-
value: function updateSelf(self
|
1216
|
-
|
1217
|
-
if (self && !(0, _lodash.isEqual)(this.self, self)) {
|
1285
|
+
value: function updateSelf(self) {
|
1286
|
+
if (self) {
|
1218
1287
|
// @ts-ignore
|
1219
|
-
var parsedSelves = _selfUtils.default.getSelves(this.self, self, this.webex.internal.device.url
|
1288
|
+
var parsedSelves = _selfUtils.default.getSelves(this.parsedLocus.self, self, this.webex.internal.device.url, this.participants // using this.participants instead of locus.participants here, because with delta DTOs locus.participants will only contain a small subset of participants
|
1289
|
+
);
|
1290
|
+
|
1220
1291
|
this.updateMeeting(parsedSelves.current);
|
1221
1292
|
this.parsedLocus.self = parsedSelves.current;
|
1222
1293
|
var element = this.parsedLocus.states[this.parsedLocus.states.length - 1];
|
@@ -1226,7 +1297,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
1226
1297
|
|
1227
1298
|
// TODO: check if we need to save the sipUri here as well
|
1228
1299
|
// this.emit(LOCUSINFO.EVENTS.MEETING_UPDATE, SelfUtils.getSipUrl(this.getLocusPartner(participants, self), this.parsedLocus.fullState.type, this.parsedLocus.info.sipUri));
|
1229
|
-
var result = _selfUtils.default.getSipUrl(this.getLocusPartner(participants, self), this.parsedLocus.fullState.type, this.parsedLocus.info.sipUri);
|
1300
|
+
var result = _selfUtils.default.getSipUrl(this.getLocusPartner(this.participants, self), this.parsedLocus.fullState.type, this.parsedLocus.info.sipUri);
|
1230
1301
|
if (result.sipUri) {
|
1231
1302
|
this.updateMeeting(result);
|
1232
1303
|
}
|
@@ -1326,13 +1397,13 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
1326
1397
|
function: 'updateSelf'
|
1327
1398
|
}, _constants.LOCUSINFO.EVENTS.LOCAL_UNMUTE_REQUESTED, {});
|
1328
1399
|
}
|
1329
|
-
if (parsedSelves.updates.
|
1400
|
+
if (parsedSelves.updates.hasUserEnteredLobby) {
|
1330
1401
|
this.emitScoped({
|
1331
1402
|
file: 'locus-info',
|
1332
1403
|
function: 'updateSelf'
|
1333
1404
|
}, _constants.LOCUSINFO.EVENTS.SELF_UNADMITTED_GUEST, self);
|
1334
1405
|
}
|
1335
|
-
if (parsedSelves.updates.
|
1406
|
+
if (parsedSelves.updates.hasUserBeenAdmitted) {
|
1336
1407
|
this.emitScoped({
|
1337
1408
|
file: 'locus-info',
|
1338
1409
|
function: 'updateSelf'
|
@@ -1505,7 +1576,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
1505
1576
|
}, {
|
1506
1577
|
key: "getTheLocusToUpdate",
|
1507
1578
|
value: function getTheLocusToUpdate(newLocus) {
|
1508
|
-
var switchStatus = _controlsUtils.default.getSessionSwitchStatus(this
|
1579
|
+
var switchStatus = _controlsUtils.default.getSessionSwitchStatus(this, newLocus);
|
1509
1580
|
if (switchStatus.isReturnToMain && this.mainSessionLocusCache) {
|
1510
1581
|
return (0, _lodash.cloneDeep)(this.mainSessionLocusCache);
|
1511
1582
|
}
|