Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
(prejoin): fix mobile
Vlad Piersec0aa54d86503d
diff --git a/react/features/base/devices/functions.js b/react/features/base/devices/functions.jsindex 5c84e487aa..28586e687c 100644--- a/react/features/base/devices/functions.js+++ b/react/features/base/devices/functions.js@@ -234,7 +234,7 @@ export function getVideoDeviceIds(state: Object) {}/**- * Returns true if there are devices of a specific type.+ * Returns true if there are devices of a specific type or on native platform.** @param {Object} state - The state of the application.* @param {string} type - The type of device: VideoOutput | audioOutput | audioInput.@@ -242,6 +242,10 @@ export function getVideoDeviceIds(state: Object) {* @returns {boolean}*/export function hasAvailableDevices(state: Object, type: string) {+ if (state['features/base/devices'] === undefined) {+ return true;+ }+return state['features/base/devices'].availableDevices[type].length > 0;}diff --git a/react/features/device-selection/middleware.js b/react/features/device-selection/middleware.jsindex d1d9e5d98b..cf7ced47fc 100644--- a/react/features/device-selection/middleware.js+++ b/react/features/device-selection/middleware.js@@ -18,7 +18,7 @@ MiddlewareRegistry.register(store => next => action => {if (action.type === UPDATE_DEVICE_LIST) {const state = store.getState();const { popupDialogData } = state['features/device-selection'];- const { availableDevices } = state['features/base/devices'];+ const { availableDevices } = state['features/base/devices'] || {};if (popupDialogData) {popupDialogData.transport.sendEvent({