Add proper (un)subscribe logic
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								53b21688b9
							
						
					
				
			
			
				commit
				
					
						72a02b1b01
					
				
			
		
					 2 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -217,7 +217,7 @@ export function InCallView({
 | 
			
		|||
      // shouldn't bother showing it
 | 
			
		||||
      if (connectionState !== undefined) {
 | 
			
		||||
        tileDescriptors.push({
 | 
			
		||||
          id: screenshareFeed.stream.id,
 | 
			
		||||
          id: screenshareFeed.feedId,
 | 
			
		||||
          member,
 | 
			
		||||
          callFeed: screenshareFeed,
 | 
			
		||||
          focused: true,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -96,7 +96,11 @@ export function VideoTileContainer({
 | 
			
		|||
 | 
			
		||||
  useEffect(() => {
 | 
			
		||||
    item.callFeed?.setResolution(width, height);
 | 
			
		||||
  }, [width, height, item]);
 | 
			
		||||
  }, [width, height, item.callFeed]);
 | 
			
		||||
 | 
			
		||||
  useEffect(() => {
 | 
			
		||||
    item.callFeed?.setIsVisible(true);
 | 
			
		||||
  }, [item.callFeed]);
 | 
			
		||||
 | 
			
		||||
  return (
 | 
			
		||||
    <>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue