Skip to content

Commit 8ddb428

Browse files
authored
Merge pull request #263 from Azure-Samples/chwhilar/enable-remote-ufds
remote ufds start sending
2 parents 0f62b3b + 85b8129 commit 8ddb428

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Project/src/MakeCall/CallCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ export default class CallCard extends React.Component {
849849

850850
async handleMuteAllRemoteParticipants() {
851851
try {
852-
await this.call.muteAllRemoteParticipants?.();
852+
await this.call.muteAllRemoteParticipants();
853853
} catch (e) {
854854
console.error('Failed to mute all other participants.', e);
855855
}

Project/src/MakeCall/MakeCall.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ export default class MakeCall extends React.Component {
198198

199199
call.feature(Features.UserFacingDiagnostics).media.on('diagnosticChanged', diagnosticChangedListener);
200200
call.feature(Features.UserFacingDiagnostics).network.on('diagnosticChanged', diagnosticChangedListener);
201-
call.feature(Features.UserFacingDiagnostics).remote?.on('diagnosticChanged', remoteDiagnosticChangedListener);
202-
window.ufds = call.feature(Features.UserFacingDiagnostics);
201+
call.feature(Features.UserFacingDiagnostics).remote.on('diagnosticChanged', remoteDiagnosticChangedListener);
202+
call.feature(Features.UserFacingDiagnostics).remote.startSendingDiagnostics?.();
203203
});
204204

205205
e.removed.forEach(call => {

Project/src/MakeCall/RemoteParticipantCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default class RemoteParticipantCard extends React.Component {
118118
handleMuteParticipant(e, remoteParticipant) {
119119
e.preventDefault();
120120
if (this.state.canMuteOthers) {
121-
remoteParticipant.mute?.().catch((e) => console.error('Failed to mute specific participant.', e.message, e));
121+
remoteParticipant.mute().catch((e) => console.error('Failed to mute specific participant.', e.message, e));
122122
} else {
123123
console.error('Soft mute of remote participants is not a supported capability for this participant.');
124124
}

0 commit comments

Comments
 (0)