Fix Walkie-Talkie mode in Safari

We didn't check whether we actually had a video device when seeing
if the current video devices was in the list of devices, so this
caused loops which confused Safari.
This commit is contained in:
David Baker 2022-11-02 20:03:56 +00:00
parent 7b71e9b20f
commit 45dbaa968a

View file

@ -160,7 +160,7 @@ export function MediaHandlerProvider({ client, children }: Props): JSX.Element {
if (
// @ts-ignore
mediaHandler.videoInput !== videoInput ||
(mediaHandler.videoInput && mediaHandler.videoInput !== videoInput) ||
// @ts-ignore
mediaHandler.audioInput !== audioInput
) {