Merge branch 'dbkr/show_device_actually_in_use' of github.com:vector-im/element-call into dbkr/show_device_actually_in_use

This commit is contained in:
David Baker
2023-10-06 12:00:27 +01:00

View File

@@ -99,9 +99,10 @@ export const SettingsModal = (props: Props) => {
let selectedKey = devices.selectedId;
// We may present a different device as the currently selected one if we have an active track
// from the default device, because the default device may have changed since we acquired the
// track, in which case we want to display the one we're actually using rather than what the
// default is now. We only do this if we've selected, and are using, the default device
// from the default device, because the default device of the OS may have changed since we acquired the
// track, but EC did not update the track to match the new default in which case we want to display the
// one we're actually using rather than what the default is now. We only do this if we've selected, and
// are using, the default device
if (
trackUsedByRoom &&
(devices.selectedId === "" ||