You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
@@ -33,10 +33,7 @@ const getDefaultDevice = (devices: Array<Partial<MediaDeviceInfo>>) => {
|
|||||||
// with deviceId == the empty string: this is because Chrome gives us a device
|
// with deviceId == the empty string: this is because Chrome gives us a device
|
||||||
// with deviceId 'default', so we're looking for this, not the one we are adding.
|
// with deviceId 'default', so we're looking for this, not the one we are adding.
|
||||||
if (!devices.some((i) => i.deviceId === 'default')) {
|
if (!devices.some((i) => i.deviceId === 'default')) {
|
||||||
devices.unshift({
|
devices.unshift({ deviceId: '', label: _t('Default Device') });
|
||||||
deviceId: '',
|
|
||||||
label: _t('Default Device'),
|
|
||||||
});
|
|
||||||
return '';
|
return '';
|
||||||
} else {
|
} else {
|
||||||
return 'default';
|
return 'default';
|
||||||
|
|||||||
Reference in New Issue
Block a user