Skip to content

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

fix(GUM):set deviceId only when the device exists

Hristo Terezove1dc573c3cca
diff --git a/react/features/base/settings/functions.web.ts b/react/features/base/settings/functions.web.ts
index 7da5785841..a3753c97b3 100644
--- a/react/features/base/settings/functions.web.ts
+++ b/react/features/base/settings/functions.web.ts
@@ -210,6 +210,5 @@ function _getUserSelectedDeviceId(options: {
return strippedDeviceLabel === strippedCandidateLabel;
});
- return foundMatchBasedOnLabel
- ? foundMatchBasedOnLabel.deviceId : userSelectedDeviceId;
+ return foundMatchBasedOnLabel?.deviceId;
}