Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

media: fix creating video track when toggling the welcome page switch

Saúl Ibarra Corretgé385e1c1047d0
diff --git a/react/features/base/media/middleware.js b/react/features/base/media/middleware.js
index 1b30b9b20e..9b3e3b17b0 100644
--- a/react/features/base/media/middleware.js
+++ b/react/features/base/media/middleware.js
@@ -90,11 +90,11 @@ function _appStateChanged({ dispatch }, next, action) {
* @returns {Object} The value returned by {@code next(action)}.
*/
function _setAudioOnly({ dispatch }, next, action) {
- const { audioOnly } = action;
+ const { audioOnly, ensureVideoTrack } = action;
sendAnalytics(createTrackMutedEvent('video', 'audio-only mode', audioOnly));
- dispatch(setVideoMuted(audioOnly, VIDEO_MUTISM_AUTHORITY.AUDIO_ONLY));
+ dispatch(setVideoMuted(audioOnly, VIDEO_MUTISM_AUTHORITY.AUDIO_ONLY, ensureVideoTrack));
return next(action);
}