From 52e65f8aa8a37c454aca75dc7c5feaeaa816d5ed Mon Sep 17 00:00:00 2001 From: Sonali Saxena <68849765+sonalisaxenacse12@users.noreply.github.com> Date: Thu, 12 Dec 2024 12:07:55 -0800 Subject: [PATCH 1/2] Updating the name of the API - Explicit Consent --- Project/src/MakeCall/CallCard.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Project/src/MakeCall/CallCard.js b/Project/src/MakeCall/CallCard.js index af5f27d..2429a95 100644 --- a/Project/src/MakeCall/CallCard.js +++ b/Project/src/MakeCall/CallCard.js @@ -1054,18 +1054,18 @@ export default class CallCard extends React.Component { }, consentToBeingRecorded: async () => { try { - this.recordingFeature.consentToBeingRecordedAndTranscribed(); + this.recordingFeature.grantTeamsConsent(); } catch(e) { console.error(e); } }, consentToBringTranscribed: async () => { try { - this.transcriptionFeature.consentToBeingRecordedAndTranscribed(); + this.transcriptionFeature.grantTeamsConsent(); } catch(e) { console.error(e); } - }, + } } } @@ -1121,7 +1121,7 @@ export default class CallCard extends React.Component { onClick: (e) => menuCallBacks.stopSpotlight(this.identifier, e) }); - this.recordingFeature.isConsentRequired && this.state.isRecordingActive && + this.recordingFeature.isTeamsConsentRequired && this.state.isRecordingActive && menuItems.push({ key: 'Provide consent to be Recorded', text: 'Provide consent to be Recorded', @@ -1129,7 +1129,7 @@ export default class CallCard extends React.Component { onClick: (e) => menuCallBacks.consentToBeingRecorded(e) }); - this.transcriptionFeature.isConsentRequired && this.state.isTranscriptionActive && menuItems.push({ + this.transcriptionFeature.isTeamsConsentRequired && this.state.isTranscriptionActive && menuItems.push({ key: 'Provide consent to be Transcribed', text: 'Provide consent to be Transcribed', iconProps: { iconName: 'ReminderPerson'}, @@ -1138,7 +1138,7 @@ export default class CallCard extends React.Component { // Proactively provide consent for recording and transcription in the call if it is required !this.state.isRecordingActive && !this.state.isTranscriptionActive && - this.recordingFeature.isConsentRequired && this.transcriptionFeature.isConsentRequired && + this.recordingFeature.isTeamsConsentRequired && this.transcriptionFeature.isTeamsConsentRequired && menuItems.push({ key: 'Provide consent to being Recorded and Transcribed', text: 'Provide consent to being Recorded and Transcribed', From 3d2b383fcd45ceb97814557aa0819c8395dcc685 Mon Sep 17 00:00:00 2001 From: Sonali Saxena <68849765+sonalisaxenacse12@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:55:24 -0800 Subject: [PATCH 2/2] Update CallCard.js --- Project/src/MakeCall/CallCard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project/src/MakeCall/CallCard.js b/Project/src/MakeCall/CallCard.js index 2429a95..cbf1952 100644 --- a/Project/src/MakeCall/CallCard.js +++ b/Project/src/MakeCall/CallCard.js @@ -1054,14 +1054,14 @@ export default class CallCard extends React.Component { }, consentToBeingRecorded: async () => { try { - this.recordingFeature.grantTeamsConsent(); + await this.recordingFeature.grantTeamsConsent(); } catch(e) { console.error(e); } }, consentToBringTranscribed: async () => { try { - this.transcriptionFeature.grantTeamsConsent(); + await this.transcriptionFeature.grantTeamsConsent(); } catch(e) { console.error(e); }