Change alert sound for screen share end

Also fix a problem with the screen share alert playing even when
no screen share was running

close #7911
This commit is contained in:
Joao Siebel 2019-08-16 16:30:33 -03:00
parent ab01337f45
commit 9072799162
2 changed files with 4 additions and 1 deletions

View File

@ -81,7 +81,10 @@ const DesktopShare = ({
}, },
}, 'Default error handler for screenshare'); }, 'Default error handler for screenshare');
} }
// Don't trigger the screen share end alert if presenter click to cancel on screen share dialog
if (error && error.name !== 'NotAllowedError') {
screenShareEndAlert(); screenShareEndAlert();
}
}; };
const screenshareLocked = screenshareDataSavingSetting const screenshareLocked = screenshareDataSavingSetting