@webex/plugin-meetings 3.0.0-beta.133 → 3.0.0-beta.134

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.
@@ -153,17 +153,22 @@ class Utils {
153
153
  ) {
154
154
  const requiredHints = [];
155
155
 
156
- if (control.properties.enabled === true) {
157
- requiredHints.push(DISPLAY_HINTS.ENABLE_REACTIONS);
158
- }
159
- if (control.properties.enabled === false) {
160
- requiredHints.push(DISPLAY_HINTS.DISABLE_REACTIONS);
161
- }
162
- if (control.properties.showDisplayNameWithReactions === true) {
163
- requiredHints.push(DISPLAY_HINTS.ENABLE_SHOW_DISPLAY_NAME);
164
- }
165
- if (control.properties.showDisplayNameWithReactions === false) {
166
- requiredHints.push(DISPLAY_HINTS.DISABLE_SHOW_DISPLAY_NAME);
156
+ // This additional if statement avoids the display hint discrepency due to
157
+ // the service blocking partial requests with this property only.
158
+ if (control.properties.showDisplayNameWithReactions !== undefined) {
159
+ if (control.properties.showDisplayNameWithReactions === true) {
160
+ requiredHints.push(DISPLAY_HINTS.ENABLE_SHOW_DISPLAY_NAME);
161
+ }
162
+ if (control.properties.showDisplayNameWithReactions === false) {
163
+ requiredHints.push(DISPLAY_HINTS.DISABLE_SHOW_DISPLAY_NAME);
164
+ }
165
+ } else {
166
+ if (control.properties.enabled === true) {
167
+ requiredHints.push(DISPLAY_HINTS.ENABLE_REACTIONS);
168
+ }
169
+ if (control.properties.enabled === false) {
170
+ requiredHints.push(DISPLAY_HINTS.DISABLE_REACTIONS);
171
+ }
167
172
  }
168
173
 
169
174
  return Utils.hasHints({requiredHints, displayHints});
@@ -1,4 +1,4 @@
1
- import {isArray, isEqual, assignWith, cloneDeep} from 'lodash';
1
+ import {isEqual, assignWith, cloneDeep} from 'lodash';
2
2
 
3
3
  import LoggerProxy from '../common/logs/logger-proxy';
4
4
  import EventsScope from '../common/events/events-scope';
@@ -478,7 +478,7 @@ export default class Parser {
478
478
  * @param {Types~Locus} locus Locus delta
479
479
  * @returns {undefined}
480
480
  */
481
- // eslint-disable-next-line no-unused-vars
481
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
482
482
  onDeltaAction(action: string, locus) {}
483
483
 
484
484
  /**
@@ -2,7 +2,6 @@ import uuid from 'uuid';
2
2
  import {cloneDeep, isEqual, pick, isString, defer, isEmpty} from 'lodash';
3
3
  // @ts-ignore - Fix this
4
4
  import {StatelessWebexPlugin} from '@webex/webex-core';
5
- import {base64} from '@webex/common';
6
5
  import {
7
6
  ConnectionState,
8
7
  Errors,
@@ -43,7 +43,6 @@ import {
43
43
  _CONVERSATION_URL_,
44
44
  CONVERSATION_URL,
45
45
  MEETINGNUMBER,
46
- BREAKOUTS,
47
46
  _JOINED_,
48
47
  _MOVED_,
49
48
  } from '../constants';
@@ -96,6 +96,7 @@ const OnePlusFiveLayout: VideoLayout = {
96
96
  };
97
97
 
98
98
  // A layout with 2 big panes for 2 main active speakers and a strip of 6 small panes for other active speakers:
99
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
99
100
  const TwoMainPlusSixSmallLayout: VideoLayout = {
100
101
  activeSpeakerVideoPaneGroups: [
101
102
  {
@@ -19,7 +19,6 @@ import BEHAVIORAL_METRICS from '../metrics/constants';
19
19
  import ReconnectionError from '../common/errors/reconnection';
20
20
  import ReconnectInProgress from '../common/errors/reconnection-in-progress';
21
21
  import {eventType, reconnection, errorObjects} from '../metrics/config';
22
- import Media from '../media';
23
22
  import Metrics from '../metrics';
24
23
  import Meeting from '../meeting';
25
24
  import {MediaRequestManager} from '../multistream/mediaRequestManager';
@@ -1,4 +1,3 @@
1
- /* global window */
2
1
  // @ts-ignore
3
2
  import {StatelessWebexPlugin} from '@webex/webex-core';
4
3
 
@@ -203,10 +203,9 @@ describe('plugin-meetings', () => {
203
203
  });
204
204
  });
205
205
 
206
- it('should call hasHints() with all properties after negotiating hints', () => {
206
+ it('should call hasHints() with only enabled hints when respective property is provided', () => {
207
207
  const properties = {
208
208
  enabled: true,
209
- showDisplayNameWithReactions: true,
210
209
  };
211
210
 
212
211
  ControlsOptionsUtil.canUpdateReactions({properties}, []);
@@ -214,6 +213,21 @@ describe('plugin-meetings', () => {
214
213
  assert.calledWith(ControlsOptionsUtil.hasHints, {
215
214
  requiredHints: [
216
215
  DISPLAY_HINTS.ENABLE_REACTIONS,
216
+ ],
217
+ displayHints: [],
218
+ });
219
+ });
220
+
221
+ it('should call hasHints() with only display name hints when respective property is provided', () => {
222
+ const properties = {
223
+ enabled: true,
224
+ showDisplayNameWithReactions: true,
225
+ };
226
+
227
+ ControlsOptionsUtil.canUpdateReactions({properties}, []);
228
+
229
+ assert.calledWith(ControlsOptionsUtil.hasHints, {
230
+ requiredHints: [
217
231
  DISPLAY_HINTS.ENABLE_SHOW_DISPLAY_NAME,
218
232
  ],
219
233
  displayHints: [],