mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-10 21:55:19 +00:00
@@ -123,7 +123,7 @@ interface Props {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const MediaDevicesProvider: FC<Props> = ({ children }) => {
|
export const MediaDevicesProvider: FC<Props> = ({ children }) => {
|
||||||
// Counts the number of callers currently using device names
|
// Counts the number of callers currently using device names.
|
||||||
const [numCallersUsingNames, setNumCallersUsingNames] = useState(0);
|
const [numCallersUsingNames, setNumCallersUsingNames] = useState(0);
|
||||||
const usingNames = numCallersUsingNames > 0;
|
const usingNames = numCallersUsingNames > 0;
|
||||||
|
|
||||||
@@ -162,7 +162,7 @@ export const MediaDevicesProvider: FC<Props> = ({ children }) => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Skip setting state for ff output. Redundent since it is set to always return 'undefined'
|
// Skip setting state for ff output. Redundent since it is set to always return 'undefined'
|
||||||
// But makes it clear while debugging that this is not happening on FF. + perf ;)
|
// but makes it clear while debugging that this is not happening on FF. + perf ;)
|
||||||
if (audioOutput.selectedId !== undefined && !isFireFox())
|
if (audioOutput.selectedId !== undefined && !isFireFox())
|
||||||
setAudioOutputSetting(audioOutput.selectedId);
|
setAudioOutputSetting(audioOutput.selectedId);
|
||||||
}, [setAudioOutputSetting, audioOutput.selectedId]);
|
}, [setAudioOutputSetting, audioOutput.selectedId]);
|
||||||
|
|||||||
Reference in New Issue
Block a user