Skip to content

Commit

Permalink
feat(ps): updatePracticeSessionStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
mickelr committed Dec 2, 2024
1 parent 561ce54 commit 609ae79
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/@webex/plugin-meetings/src/meeting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2655,6 +2655,7 @@ export default class Meeting extends StatelessWebexPlugin {
});

this.locusInfo.on(LOCUSINFO.EVENTS.CONTROLS_PRACTICE_SESSION_STATUS_UPDATED, ({state}) => {
this.webinar.updatePracticeSessionStatus(state);
Trigger.trigger(
this,
{file: 'meeting/index', function: 'setupLocusControlsListener'},
Expand Down
10 changes: 10 additions & 0 deletions packages/@webex/plugin-meetings/src/webinar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const Webinar = WebexPlugin.extend({
canManageWebcast: 'boolean', // appears the ability to manage webcast
selfIsPanelist: 'boolean', // self is panelist
selfIsAttendee: 'boolean', // self is attendee
practiceSessionEnabled: 'boolean', // practice session enabled
},

/**
Expand Down Expand Up @@ -93,6 +94,15 @@ const Webinar = WebexPlugin.extend({
throw error;
});
},

/**
* update practice session status
* @param {object} payload
* @returns {void}
*/
updatePracticeSessionStatus(payload) {
this.set('practiceSessionEnabled', payload.enabled);
},
});

export default Webinar;

0 comments on commit 609ae79

Please sign in to comment.