@webex/plugin-meetings 3.10.0-next.26 → 3.10.0-next.27

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.
@@ -448,7 +448,7 @@ var Webinar = _webexCore.WebexPlugin.extend({
448
448
  }, _callee7);
449
449
  }))();
450
450
  },
451
- version: "3.10.0-next.26"
451
+ version: "3.10.0-next.27"
452
452
  });
453
453
  var _default = exports.default = Webinar;
454
454
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -93,5 +93,5 @@
93
93
  "//": [
94
94
  "TODO: upgrade jwt-decode when moving to node 18"
95
95
  ],
96
- "version": "3.10.0-next.26"
96
+ "version": "3.10.0-next.27"
97
97
  }
@@ -1113,11 +1113,7 @@ class HashTreeParser {
1113
1113
 
1114
1114
  const url = `${dataSet.url}/sync`;
1115
1115
  const body = {
1116
- dataSet: {
1117
- name: dataSet.name,
1118
- leafCount: dataSet.leafCount,
1119
- root: dataSet.hashTree?.getRootHash(),
1120
- },
1116
+ leafCount: dataSet.leafCount,
1121
1117
  leafDataEntries: [],
1122
1118
  };
1123
1119
 
@@ -980,8 +980,8 @@ export default class LocusInfo extends EventsScope {
980
980
  // eslint-disable-next-line @typescript-eslint/no-shadow
981
981
  handleOneOnOneEvent(eventType: string) {
982
982
  if (
983
- this.parsedLocus.fullState.type === _CALL_ ||
984
- this.parsedLocus.fullState.type === _SIP_BRIDGE_
983
+ this.parsedLocus.fullState?.type === _CALL_ ||
984
+ this.parsedLocus.fullState?.type === _SIP_BRIDGE_
985
985
  ) {
986
986
  // for 1:1 bob calls alice and alice declines, notify the meeting state
987
987
  if (eventType === LOCUSEVENT.PARTICIPANT_DECLINED) {
@@ -1094,9 +1094,9 @@ export default class LocusInfo extends EventsScope {
1094
1094
  */
1095
1095
  isMeetingActive() {
1096
1096
  if (
1097
- this.parsedLocus.fullState.type === _CALL_ ||
1098
- this.parsedLocus.fullState.type === _SIP_BRIDGE_ ||
1099
- this.parsedLocus.fullState.type === _SPACE_SHARE_
1097
+ this.parsedLocus.fullState?.type === _CALL_ ||
1098
+ this.parsedLocus.fullState?.type === _SIP_BRIDGE_ ||
1099
+ this.parsedLocus.fullState?.type === _SPACE_SHARE_
1100
1100
  ) {
1101
1101
  // @ts-ignore
1102
1102
  const partner = this.getLocusPartner(this.participants, this.self);
@@ -1189,7 +1189,7 @@ export default class LocusInfo extends EventsScope {
1189
1189
  }
1190
1190
  );
1191
1191
  }
1192
- } else if (this.parsedLocus.fullState.type === _MEETING_) {
1192
+ } else if (this.parsedLocus.fullState?.type === _MEETING_) {
1193
1193
  if (
1194
1194
  this.fullState &&
1195
1195
  (this.fullState.state === LOCUS.STATE.INACTIVE ||
@@ -1286,6 +1286,7 @@ export default class LocusInfo extends EventsScope {
1286
1286
  compareSelfAndHost() {
1287
1287
  // In some cases the host info is not present but the moderator values changes from null to false so it triggers an update
1288
1288
  if (
1289
+ this.parsedLocus.self &&
1289
1290
  this.parsedLocus.self.selfIdentity === this.parsedLocus.host?.hostId &&
1290
1291
  this.parsedLocus.self.moderator
1291
1292
  ) {
@@ -1970,14 +1971,14 @@ export default class LocusInfo extends EventsScope {
1970
1971
  }
1971
1972
 
1972
1973
  // TODO: check if we need to save the sipUri here as well
1973
- // this.emit(LOCUSINFO.EVENTS.MEETING_UPDATE, SelfUtils.getSipUrl(this.getLocusPartner(participants, self), this.parsedLocus.fullState.type, this.parsedLocus.info.sipUri));
1974
+ // this.emit(LOCUSINFO.EVENTS.MEETING_UPDATE, SelfUtils.getSipUrl(this.getLocusPartner(participants, self), this.parsedLocus.fullState?.type, this.parsedLocus.info?.sipUri));
1974
1975
  const result = SelfUtils.getSipUrl(
1975
1976
  this.getLocusPartner(this.participants, self),
1976
- this.parsedLocus.fullState.type,
1977
- this.parsedLocus.info.sipUri
1977
+ this.parsedLocus.fullState?.type,
1978
+ this.parsedLocus.info?.sipUri
1978
1979
  );
1979
1980
 
1980
- if (result.sipUri) {
1981
+ if (result?.sipUri) {
1981
1982
  this.updateMeeting(result);
1982
1983
  }
1983
1984
 
@@ -1187,11 +1187,7 @@ describe('HashTreeParser', () => {
1187
1187
  method: 'POST',
1188
1188
  uri: `${mainDataSetUrl}/sync`,
1189
1189
  body: {
1190
- dataSet: {
1191
- name: 'main',
1192
- leafCount: 16,
1193
- root: '472801612a448c4e0ab74975ed9d7a2e'
1194
- },
1190
+ leafCount: 16,
1195
1191
  leafDataEntries: [
1196
1192
  {leafIndex: 0, elementIds: [{type: 'locus', id: 0, version: 201}]},
1197
1193
  {leafIndex: 4, elementIds: [{type: 'participant', id: 4, version: 301}]},
@@ -1244,11 +1240,7 @@ describe('HashTreeParser', () => {
1244
1240
  method: 'POST',
1245
1241
  uri: `${parser.dataSets.self.url}/sync`,
1246
1242
  body: {
1247
- dataSet: {
1248
- name: 'self',
1249
- leafCount: 1,
1250
- root: '483ba32a5db954720b4c43ed528d8075'
1251
- },
1243
+ leafCount: 1,
1252
1244
  leafDataEntries: [
1253
1245
  {leafIndex: 0, elementIds: [{type: 'self', id: 4, version: 102}]},
1254
1246
  ],