Disable screensharing button if user refuses rights

If the user refuses the popup to screen-share, we should switch back the button to gray.

Closes #1179
This commit is contained in:
David Négrier 2021-06-14 18:18:57 +02:00
parent f16514db21
commit 6af9b5d0fc

View file

@ -169,6 +169,7 @@ export const screenSharingLocalStreamStore = derived<Readable<MediaStreamConstra
return;
} catch (e) {
currentStream = null;
requestedScreenSharingState.disableScreenSharing();
console.info("Error. Unable to share screen.", e);
set({
type: 'error',