Merge pull request #1181 from thecodingmachine/disable_screensharing_button_on_error

Disable screensharing button if user refuses rights
This commit is contained in:
David Négrier 2021-06-14 18:22:20 +02:00 committed by GitHub
commit 9f9584633c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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