mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-25 06:40:26 +00:00
use optional audio context and effect to initiate it + review
This commit is contained in:
@@ -49,7 +49,7 @@ export const DeviceSelection: FC<Props> = ({
|
||||
);
|
||||
|
||||
// There is no need to show the menu if there is no choice that can be made.
|
||||
if (device.available.size == 1) return null;
|
||||
if (device.available.size <= 1) return null;
|
||||
|
||||
return (
|
||||
<div className={styles.selection}>
|
||||
|
||||
Reference in New Issue
Block a user