@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.
Files changed (168) hide show
  1. package/dist/breakouts/breakout.js +1 -1
  2. package/dist/breakouts/index.js +70 -6
  3. package/dist/breakouts/index.js.map +1 -1
  4. package/dist/common/errors/webex-errors.js +12 -2
  5. package/dist/common/errors/webex-errors.js.map +1 -1
  6. package/dist/config.js +4 -1
  7. package/dist/config.js.map +1 -1
  8. package/dist/constants.js +22 -123
  9. package/dist/constants.js.map +1 -1
  10. package/dist/controls-options-manager/enums.js +2 -0
  11. package/dist/controls-options-manager/enums.js.map +1 -1
  12. package/dist/controls-options-manager/types.js.map +1 -1
  13. package/dist/controls-options-manager/util.js +52 -0
  14. package/dist/controls-options-manager/util.js.map +1 -1
  15. package/dist/interpretation/index.js +1 -1
  16. package/dist/interpretation/siLanguage.js +1 -1
  17. package/dist/locus-info/controlsUtils.js +30 -10
  18. package/dist/locus-info/controlsUtils.js.map +1 -1
  19. package/dist/locus-info/index.js +83 -12
  20. package/dist/locus-info/index.js.map +1 -1
  21. package/dist/locus-info/selfUtils.js +432 -418
  22. package/dist/locus-info/selfUtils.js.map +1 -1
  23. package/dist/media/index.js +17 -17
  24. package/dist/media/index.js.map +1 -1
  25. package/dist/media/properties.js +94 -6
  26. package/dist/media/properties.js.map +1 -1
  27. package/dist/meeting/brbState.js +9 -2
  28. package/dist/meeting/brbState.js.map +1 -1
  29. package/dist/meeting/in-meeting-actions.js +17 -1
  30. package/dist/meeting/in-meeting-actions.js.map +1 -1
  31. package/dist/meeting/index.js +568 -328
  32. package/dist/meeting/index.js.map +1 -1
  33. package/dist/meeting/locusMediaRequest.js +0 -17
  34. package/dist/meeting/locusMediaRequest.js.map +1 -1
  35. package/dist/meeting/muteState.js +4 -4
  36. package/dist/meeting/muteState.js.map +1 -1
  37. package/dist/meeting/request.js +30 -0
  38. package/dist/meeting/request.js.map +1 -1
  39. package/dist/meeting/request.type.js.map +1 -1
  40. package/dist/meeting/util.js +9 -1
  41. package/dist/meeting/util.js.map +1 -1
  42. package/dist/meeting-info/meeting-info-v2.js +19 -13
  43. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  44. package/dist/meeting-info/utilv2.js +5 -1
  45. package/dist/meeting-info/utilv2.js.map +1 -1
  46. package/dist/meetings/index.js +76 -0
  47. package/dist/meetings/index.js.map +1 -1
  48. package/dist/meetings/util.js +14 -0
  49. package/dist/meetings/util.js.map +1 -1
  50. package/dist/member/index.js +45 -9
  51. package/dist/member/index.js.map +1 -1
  52. package/dist/member/types.js +3 -0
  53. package/dist/member/types.js.map +1 -1
  54. package/dist/member/util.js +335 -356
  55. package/dist/member/util.js.map +1 -1
  56. package/dist/members/collection.js.map +1 -1
  57. package/dist/members/index.js +137 -29
  58. package/dist/members/index.js.map +1 -1
  59. package/dist/members/request.js +38 -0
  60. package/dist/members/request.js.map +1 -1
  61. package/dist/members/util.js +36 -1
  62. package/dist/members/util.js.map +1 -1
  63. package/dist/metrics/constants.js +1 -0
  64. package/dist/metrics/constants.js.map +1 -1
  65. package/dist/reachability/clusterReachability.js +23 -31
  66. package/dist/reachability/clusterReachability.js.map +1 -1
  67. package/dist/reachability/index.js +42 -2
  68. package/dist/reachability/index.js.map +1 -1
  69. package/dist/reconnection-manager/index.js +2 -2
  70. package/dist/reconnection-manager/index.js.map +1 -1
  71. package/dist/roap/index.js.map +1 -1
  72. package/dist/roap/turnDiscovery.js +45 -27
  73. package/dist/roap/turnDiscovery.js.map +1 -1
  74. package/dist/roap/types.js +17 -0
  75. package/dist/roap/types.js.map +1 -0
  76. package/dist/types/common/errors/webex-errors.d.ts +7 -1
  77. package/dist/types/config.d.ts +2 -0
  78. package/dist/types/constants.d.ts +15 -85
  79. package/dist/types/controls-options-manager/enums.d.ts +3 -1
  80. package/dist/types/controls-options-manager/types.d.ts +7 -1
  81. package/dist/types/locus-info/index.d.ts +3 -3
  82. package/dist/types/locus-info/selfUtils.d.ts +216 -1
  83. package/dist/types/media/properties.d.ts +15 -0
  84. package/dist/types/meeting/in-meeting-actions.d.ts +16 -0
  85. package/dist/types/meeting/index.d.ts +35 -1
  86. package/dist/types/meeting/muteState.d.ts +0 -1
  87. package/dist/types/meeting/request.d.ts +12 -1
  88. package/dist/types/meeting/request.type.d.ts +6 -0
  89. package/dist/types/meeting/util.d.ts +3 -1
  90. package/dist/types/meeting-info/meeting-info-v2.d.ts +2 -1
  91. package/dist/types/meetings/index.d.ts +28 -0
  92. package/dist/types/member/index.d.ts +20 -6
  93. package/dist/types/member/types.d.ts +73 -14
  94. package/dist/types/member/util.d.ts +156 -1
  95. package/dist/types/members/collection.d.ts +6 -5
  96. package/dist/types/members/index.d.ts +32 -43
  97. package/dist/types/members/request.d.ts +26 -0
  98. package/dist/types/members/util.d.ts +27 -0
  99. package/dist/types/metrics/constants.d.ts +1 -0
  100. package/dist/types/reachability/clusterReachability.d.ts +2 -6
  101. package/dist/types/reachability/index.d.ts +8 -0
  102. package/dist/types/roap/index.d.ts +3 -2
  103. package/dist/types/roap/turnDiscovery.d.ts +5 -17
  104. package/dist/types/roap/types.d.ts +16 -0
  105. package/dist/webinar/index.js +1 -1
  106. package/package.json +24 -23
  107. package/src/breakouts/index.ts +69 -0
  108. package/src/common/errors/webex-errors.ts +8 -1
  109. package/src/config.ts +2 -0
  110. package/src/constants.ts +23 -90
  111. package/src/controls-options-manager/enums.ts +2 -0
  112. package/src/controls-options-manager/types.ts +11 -1
  113. package/src/controls-options-manager/util.ts +62 -0
  114. package/src/locus-info/controlsUtils.ts +48 -12
  115. package/src/locus-info/index.ts +88 -13
  116. package/src/locus-info/selfUtils.ts +496 -442
  117. package/src/media/index.ts +23 -21
  118. package/src/media/properties.ts +96 -0
  119. package/src/meeting/brbState.ts +11 -2
  120. package/src/meeting/in-meeting-actions.ts +32 -0
  121. package/src/meeting/index.ts +356 -87
  122. package/src/meeting/locusMediaRequest.ts +0 -18
  123. package/src/meeting/muteState.ts +4 -4
  124. package/src/meeting/request.ts +36 -1
  125. package/src/meeting/request.type.ts +7 -0
  126. package/src/meeting/util.ts +9 -1
  127. package/src/meeting-info/meeting-info-v2.ts +7 -2
  128. package/src/meeting-info/utilv2.ts +5 -0
  129. package/src/meetings/index.ts +76 -0
  130. package/src/meetings/util.ts +18 -0
  131. package/src/member/index.ts +57 -22
  132. package/src/member/types.ts +82 -16
  133. package/src/member/util.ts +357 -353
  134. package/src/members/collection.ts +4 -3
  135. package/src/members/index.ts +137 -18
  136. package/src/members/request.ts +44 -0
  137. package/src/members/util.ts +43 -1
  138. package/src/metrics/constants.ts +1 -0
  139. package/src/reachability/clusterReachability.ts +26 -25
  140. package/src/reachability/index.ts +55 -1
  141. package/src/reconnection-manager/index.ts +2 -2
  142. package/src/roap/index.ts +3 -7
  143. package/src/roap/turnDiscovery.ts +34 -39
  144. package/src/roap/types.ts +23 -0
  145. package/test/unit/spec/breakouts/index.ts +167 -95
  146. package/test/unit/spec/controls-options-manager/util.js +120 -0
  147. package/test/unit/spec/locus-info/controlsUtils.js +131 -9
  148. package/test/unit/spec/locus-info/index.js +195 -73
  149. package/test/unit/spec/locus-info/selfUtils.js +98 -24
  150. package/test/unit/spec/media/index.ts +150 -18
  151. package/test/unit/spec/media/properties.ts +130 -0
  152. package/test/unit/spec/meeting/brbState.ts +40 -2
  153. package/test/unit/spec/meeting/in-meeting-actions.ts +19 -4
  154. package/test/unit/spec/meeting/index.js +553 -36
  155. package/test/unit/spec/meeting/locusMediaRequest.ts +0 -30
  156. package/test/unit/spec/meeting/muteState.js +73 -2
  157. package/test/unit/spec/meeting/request.js +32 -1
  158. package/test/unit/spec/meeting/utils.js +79 -33
  159. package/test/unit/spec/meeting-info/meetinginfov2.js +41 -0
  160. package/test/unit/spec/meeting-info/utilv2.js +19 -0
  161. package/test/unit/spec/meetings/index.js +68 -1
  162. package/test/unit/spec/members/index.js +304 -78
  163. package/test/unit/spec/members/request.js +68 -22
  164. package/test/unit/spec/members/utils.js +75 -0
  165. package/test/unit/spec/reachability/clusterReachability.ts +41 -55
  166. package/test/unit/spec/reachability/index.ts +89 -0
  167. package/test/unit/spec/reconnection-manager/index.js +4 -4
  168. package/test/unit/spec/roap/turnDiscovery.ts +110 -28
@@ -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, locus.participants);
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, locus.participants);
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.mediaShares property
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, participants) {
1216
- // @ts-ignore - check where this.self come from
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.isUserUnadmitted) {
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.isUserAdmitted) {
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.controls, newLocus === null || newLocus === void 0 ? void 0 : newLocus.controls);
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
  }