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:
		
					parent
					
						
							
								7b71e9b20f
							
						
					
				
			
			
				commit
				
					
						45dbaa968a
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
        ) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue