feat(conference): hide user media permission overlay when tracks are created

This commit is contained in:
Lyubo Marinov 2017-11-29 22:47:24 -06:00
parent 4829b86352
commit bf7b723891
1 changed files with 7 additions and 5 deletions

View File

@ -632,11 +632,13 @@ export default {
}); });
} }
// Hide permissions overlay when tracks are created // Hide the permissions prompt/overlay as soon as the tracks are
tryCreateLocalTracks.then(() => { // created. Don't wait for the connection to be made, since in some
APP.store.dispatch( // cases, when auth is rquired, for instance, that won't happen until
mediaPermissionPromptVisibilityChanged(false)); // the user inputs their credentials, but the dialog would be
}); // overshadowed by the overlay.
tryCreateLocalTracks.then(() =>
APP.store.dispatch(mediaPermissionPromptVisibilityChanged(false)));
return Promise.all([ tryCreateLocalTracks, connect(roomName) ]) return Promise.all([ tryCreateLocalTracks, connect(roomName) ])
.then(([ tracks, con ]) => { .then(([ tracks, con ]) => {