Skip to content

Updating the name of the API - Explicit Consent #250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Project/src/MakeCall/CallCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},
}
}
}

Expand Down Expand Up @@ -1121,15 +1121,15 @@ 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',
iconProps: { iconName: 'ReminderPerson'},
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'},
Expand All @@ -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',
Expand Down