@webex/plugin-meetings 3.12.0-next.144 → 3.12.0-next.146

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.
@@ -116,6 +116,7 @@ interface IInMeetingActions {
116
116
  canAttendeeRequestAiAssistantEnabled?: boolean;
117
117
  isAttendeeRequestAiAssistantDeclinedAll?: boolean;
118
118
  isAnonymizeDisplayNamesEnabled?: boolean;
119
+ isSupportParticipantList?: boolean;
119
120
  canViewTheParticipantList?: boolean;
120
121
  }
121
122
  /**
@@ -206,6 +207,7 @@ export default class InMeetingActions implements IInMeetingActions {
206
207
  canChat: any;
207
208
  canDoVideo: any;
208
209
  canAnnotate: any;
210
+ isSupportParticipantList: any;
209
211
  canUseVoip: any;
210
212
  showAutoEndMeetingWarning: any;
211
213
  supportHQV: any;
@@ -869,7 +869,7 @@ var Webinar = _webexCore.WebexPlugin.extend({
869
869
  }, _callee1);
870
870
  }))();
871
871
  },
872
- version: "3.12.0-next.144"
872
+ version: "3.12.0-next.146"
873
873
  });
874
874
  var _default = exports.default = Webinar;
875
875
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -94,5 +94,5 @@
94
94
  "//": [
95
95
  "TODO: upgrade jwt-decode when moving to node 18"
96
96
  ],
97
- "version": "3.12.0-next.144"
97
+ "version": "3.12.0-next.146"
98
98
  }
@@ -121,6 +121,7 @@ interface IInMeetingActions {
121
121
  canAttendeeRequestAiAssistantEnabled?: boolean;
122
122
  isAttendeeRequestAiAssistantDeclinedAll?: boolean;
123
123
  isAnonymizeDisplayNamesEnabled?: boolean;
124
+ isSupportParticipantList?: boolean;
124
125
  canViewTheParticipantList?: boolean;
125
126
  }
126
127
 
@@ -296,6 +297,8 @@ export default class InMeetingActions implements IInMeetingActions {
296
297
 
297
298
  canAnnotate = null;
298
299
 
300
+ isSupportParticipantList = null;
301
+
299
302
  canUseVoip = null;
300
303
 
301
304
  showAutoEndMeetingWarning = null;
@@ -441,6 +444,7 @@ export default class InMeetingActions implements IInMeetingActions {
441
444
  canChat: this.canChat,
442
445
  canDoVideo: this.canDoVideo,
443
446
  canAnnotate: this.canAnnotate,
447
+ isSupportParticipantList: this.isSupportParticipantList,
444
448
  canUseVoip: this.canUseVoip,
445
449
  enforceVirtualBackground: this.enforceVirtualBackground,
446
450
  supportHQV: this.supportHQV,
@@ -4826,6 +4826,10 @@ export default class Meeting extends StatelessWebexPlugin {
4826
4826
  isAnonymizeDisplayNamesEnabled: MeetingUtil.isAnonymizeDisplayNamesEnabled(
4827
4827
  this.userDisplayHints
4828
4828
  ),
4829
+ isSupportParticipantList: ControlsOptionsUtil.hasPolicies({
4830
+ requiredPolicies: [SELF_POLICY.SUPPORT_PARTICIPANT_LIST],
4831
+ policies: this.selfUserPolicies,
4832
+ }),
4829
4833
  canViewTheParticipantList: MeetingUtil.canViewTheParticipantList(
4830
4834
  this.userDisplayHints,
4831
4835
  this.canNotViewTheParticipantList ?? false
@@ -372,7 +372,6 @@ const MeetingUtil = {
372
372
  meeting.breakouts.cleanUp();
373
373
  meeting.webinar.cleanUp();
374
374
  meeting.simultaneousInterpretation.cleanUp();
375
- meeting.locusInfo.cleanUp();
376
375
  meeting.locusMediaRequest = undefined;
377
376
 
378
377
  meeting.webex?.internal?.newMetrics?.callDiagnosticMetrics?.clearEventLimitsForCorrelationId(
@@ -1493,6 +1493,9 @@ export default class Meetings extends WebexPlugin {
1493
1493
  */
1494
1494
  private destroy(meeting: Meeting, reason: object) {
1495
1495
  MeetingUtil.cleanUp(meeting);
1496
+ // Tear down hash tree parsers here (and not in MeetingUtil.cleanUp) so they survive
1497
+ // leave/endMeetingForAll to consume the final sentinel END message from Locus.
1498
+ meeting.locusInfo?.cleanUp();
1496
1499
  // keep some basic info about the deleted meeting forever
1497
1500
  this.deletedMeetings.set(meeting.id, {
1498
1501
  id: meeting.id,
@@ -115,6 +115,7 @@ describe('plugin-meetings', () => {
115
115
  canAttendeeRequestAiAssistantEnabled: null,
116
116
  isAttendeeRequestAiAssistantDeclinedAll: null,
117
117
  isAnonymizeDisplayNamesEnabled: null,
118
+ isSupportParticipantList: null,
118
119
  canViewTheParticipantList: null,
119
120
 
120
121
  ...expected,
@@ -211,6 +212,7 @@ describe('plugin-meetings', () => {
211
212
  'showAutoEndMeetingWarning',
212
213
  'canDoVideo',
213
214
  'canAnnotate',
215
+ 'isSupportParticipantList',
214
216
  'canUseVoip',
215
217
  'supportHQV',
216
218
  'supportHDV',
@@ -14247,6 +14247,11 @@ describe('plugin-meetings', () => {
14247
14247
  requiredDisplayHints: [],
14248
14248
  requiredPolicies: [SELF_POLICY.SUPPORT_ANNOTATION],
14249
14249
  },
14250
+ {
14251
+ actionName: 'isSupportParticipantList',
14252
+ requiredDisplayHints: [],
14253
+ requiredPolicies: [SELF_POLICY.SUPPORT_PARTICIPANT_LIST],
14254
+ },
14250
14255
  {
14251
14256
  actionName: 'canPollingAndQA',
14252
14257
  requiredDisplayHints: [],
@@ -90,7 +90,8 @@ describe('plugin-meetings', () => {
90
90
  assert.calledOnceWithExactly(meeting.cleanupLLMConneciton, {throwOnError: false});
91
91
  assert.calledOnce(meeting.breakouts.cleanUp);
92
92
  assert.calledOnce(meeting.simultaneousInterpretation.cleanUp);
93
- assert.calledOnce(meeting.locusInfo.cleanUp);
93
+ // locusInfo.cleanUp (hash tree parser teardown) is deferred to Meetings#destroy
94
+ assert.notCalled(meeting.locusInfo.cleanUp);
94
95
  assert.calledOnce(webex.internal.device.meetingEnded);
95
96
  assert.calledOnceWithExactly(
96
97
  meeting.webex.internal.newMetrics.callDiagnosticMetrics.clearEventLimitsForCorrelationId,
@@ -112,7 +113,8 @@ describe('plugin-meetings', () => {
112
113
  assert.notCalled(meeting.cleanupLLMConneciton);
113
114
  assert.calledOnce(meeting.breakouts.cleanUp);
114
115
  assert.calledOnce(meeting.simultaneousInterpretation.cleanUp);
115
- assert.calledOnce(meeting.locusInfo.cleanUp);
116
+ // locusInfo.cleanUp (hash tree parser teardown) is deferred to Meetings#destroy
117
+ assert.notCalled(meeting.locusInfo.cleanUp);
116
118
  assert.calledOnce(webex.internal.device.meetingEnded);
117
119
  assert.calledOnceWithExactly(
118
120
  meeting.webex.internal.newMetrics.callDiagnosticMetrics.clearEventLimitsForCorrelationId,
@@ -133,7 +135,8 @@ describe('plugin-meetings', () => {
133
135
  assert.notCalled(meeting.cleanupLLMConneciton);
134
136
  assert.calledOnce(meeting.breakouts.cleanUp);
135
137
  assert.calledOnce(meeting.simultaneousInterpretation.cleanUp);
136
- assert.calledOnce(meeting.locusInfo.cleanUp);
138
+ // locusInfo.cleanUp (hash tree parser teardown) is deferred to Meetings#destroy
139
+ assert.notCalled(meeting.locusInfo.cleanUp);
137
140
  assert.calledOnce(webex.internal.device.meetingEnded);
138
141
  assert.calledOnceWithExactly(
139
142
  meeting.webex.internal.newMetrics.callDiagnosticMetrics.clearEventLimitsForCorrelationId,
@@ -1708,6 +1708,7 @@ describe('plugin-meetings', () => {
1708
1708
  locusInfo: {
1709
1709
  info: {globalMeetingId: 'gmid-other'},
1710
1710
  sync: sinon.stub().resolves(),
1711
+ cleanUp: sinon.stub(),
1711
1712
  },
1712
1713
  sendCallAnalyzerMetrics: sinon.stub(),
1713
1714
  },
@@ -3463,6 +3464,16 @@ describe('plugin-meetings', () => {
3463
3464
  assert.equal(deletedMeetingInfo.roles, meetingIds.roles);
3464
3465
  assert.equal(deletedMeetingInfo.callStateForMetrics, meetingIds.callStateForMetrics);
3465
3466
  });
3467
+
3468
+ it('cleans up locusInfo (tearing down hash tree parsers) when destroying the meeting', async () => {
3469
+ const meeting = await webex.meetings.createMeeting('test', 'test');
3470
+ const locusInfoCleanUpSpy = sinon.spy(meeting.locusInfo, 'cleanUp');
3471
+
3472
+ webex.meetings.destroy(meeting, test1);
3473
+
3474
+ // hash tree parser teardown is deferred from MeetingUtil.cleanUp to Meetings#destroy
3475
+ assert.calledOnce(locusInfoCleanUpSpy);
3476
+ });
3466
3477
  });
3467
3478
 
3468
3479
  describe('with auto upload logs enabled', () => {