Skip to content

Commit

Permalink
feat: typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hmahant-webex committed Dec 5, 2024
1 parent be1b537 commit ae2c864
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface IInMeetingActions {
canStartRecording?: boolean;
canPauseRecording?: boolean;
canResumeRecording?: boolean;
isPremiseRecordinEnabled?: boolean;
isPremiseRecordingEnabled?: boolean;
canStopRecording?: boolean;
canRaiseHand?: boolean;
canLowerAllHands?: boolean;
Expand Down Expand Up @@ -118,7 +118,7 @@ export default class InMeetingActions implements IInMeetingActions {

canResumeRecording = null;

isPremiseRecordinEnabled = null;
isPremiseRecordingEnabled = null;

canStopRecording = null;

Expand Down Expand Up @@ -291,7 +291,7 @@ export default class InMeetingActions implements IInMeetingActions {
canPauseRecording: this.canPauseRecording,
canResumeRecording: this.canResumeRecording,
canStopRecording: this.canStopRecording,
isPremiseRecordinEnabled: this.isPremiseRecordinEnabled,
isPremiseRecordingEnabled: this.isPremiseRecordingEnabled,
canRaiseHand: this.canRaiseHand,
canLowerAllHands: this.canLowerAllHands,
canLowerSomeoneElsesHand: this.canLowerSomeoneElsesHand,
Expand Down
4 changes: 4 additions & 0 deletions packages/@webex/plugin-meetings/src/meeting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3766,6 +3766,10 @@ export default class Meeting extends StatelessWebexPlugin {
this.userDisplayHints,
this.selfUserPolicies
),
isPremiseRecordingEnabled: RecordingUtil.isPremiseRecordingEnabled(
this.userDisplayHints,
this.selfUserPolicies
),
canRaiseHand: MeetingUtil.canUserRaiseHand(this.userDisplayHints),
canLowerAllHands: MeetingUtil.canUserLowerAllHands(this.userDisplayHints),
canLowerSomeoneElsesHand: MeetingUtil.canUserLowerSomeoneElsesHand(this.userDisplayHints),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export default class RecordingController {
* @returns {Promise}
*/
private recordingFacade(action: RecordingAction): Promise<any> {
const premiseRecStatus = Util.isPremiseRecordinEnabled(
const premiseRecStatus = Util.isPremiseRecordingEnabled(
this.displayHints,
this.selfUserPolicies
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const canUserStop = (
displayHints.includes(DISPLAY_HINTS.PREMISE_RECORDING_CONTROL_STOP)) &&
MeetingUtil.selfSupportsFeature(SELF_POLICY.SUPPORT_NETWORK_BASED_RECORD, userPolicies);

const isPremiseRecordinEnabled = (
const isPremiseRecordingEnabled = (
displayHints: Array<string>,
userPolicies: Record<SELF_POLICY, boolean>
): boolean =>
Expand Down Expand Up @@ -84,7 +84,7 @@ export default {
canUserPause,
canUserResume,
canUserStop,
isPremiseRecordinEnabled,
isPremiseRecordingEnabled,
deriveRecordingStates,
extractLocusId,
};
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('plugin-meetings', () => {
canStartManualCaption: null,
canStopManualCaption: null,
isManualCaptionActive: null,
isPremiseRecordinEnabled: null,
isPremiseRecordingEnabled: null,
isSaveTranscriptsEnabled: null,
isWebexAssistantActive: null,
canViewCaptionPanel: null,
Expand Down Expand Up @@ -127,7 +127,7 @@ describe('plugin-meetings', () => {
'canStartManualCaption',
'canStopManualCaption',
'isManualCaptionActive',
'isPremiseRecordinEnabled',
'isPremiseRecordingEnabled',
'isSaveTranscriptsEnabled',
'isWebexAssistantActive',
'canViewCaptionPanel',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ describe('plugin-meetings', () => {
);
});

it('can start recording when the correct display hint is present and the policy is true', () => {
it('can resume recording when the correct display hint is present and the policy is true', () => {
locusInfo.parsedLocus.info.userDisplayHints.push('RECORDING_CONTROL_RESUME');

assert.equal(
Expand Down

0 comments on commit ae2c864

Please sign in to comment.