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