Browse Source

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.
master
Saúl Ibarra Corretgé 4 years ago
parent
commit
19e7f07b32

+ 7
- 0
react/features/mobile/audio-mode/components/AudioRoutePickerDialog.js View File

@@ -176,6 +176,13 @@ class AudioRoutePickerDialog extends Component<Props, State> {
176 176
 
177 177
         for (const device of devices) {
178 178
             const infoMap = deviceInfoMap[device.type];
179
+
180
+            // Skip devices with unknown type.
181
+            if (!infoMap) {
182
+                // eslint-disable-next-line no-continue
183
+                continue;
184
+            }
185
+
179 186
             const text = device.type === 'BLUETOOTH' && device.name ? device.name : infoMap.text;
180 187
 
181 188
             if (infoMap) {

Loading…
Cancel
Save