fix(ios) fix black screen when using Bluetooth in iOS 15
Fixes: https://github.com/jitsi/jitsi-meet/issues/9996 On iOS 15 Bluetooth devices are reported twice for some reason, one with the normal type "Bluetooth" but another type without a know (to me) type, and the uid ends in "-reference". While we send those unkwno devices to JS, we were not filtering them properly. This patch skips them altogether.
This commit is contained in:
parent
b1ebe340cf
commit
19e7f07b32
|
@ -176,6 +176,13 @@ class AudioRoutePickerDialog extends Component<Props, State> {
|
||||||
|
|
||||||
for (const device of devices) {
|
for (const device of devices) {
|
||||||
const infoMap = deviceInfoMap[device.type];
|
const infoMap = deviceInfoMap[device.type];
|
||||||
|
|
||||||
|
// Skip devices with unknown type.
|
||||||
|
if (!infoMap) {
|
||||||
|
// eslint-disable-next-line no-continue
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const text = device.type === 'BLUETOOTH' && device.name ? device.name : infoMap.text;
|
const text = device.type === 'BLUETOOTH' && device.name ? device.name : infoMap.text;
|
||||||
|
|
||||||
if (infoMap) {
|
if (infoMap) {
|
||||||
|
|
Loading…
Reference in New Issue