mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 10:11:03 +01:00 
			
		
		
		
	Hide the local video when in a conf call
This commit is contained in:
		
							parent
							
								
									370310bf82
								
							
						
					
					
						commit
						2b65b4c2dc
					
				@ -73,7 +73,11 @@ module.exports = {
 | 
				
			|||||||
            call.setRemoteVideoElement(this.getVideoView().getRemoteVideoElement());
 | 
					            call.setRemoteVideoElement(this.getVideoView().getRemoteVideoElement());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (call && call.type === "video" && call.state !== 'ended') {
 | 
					        if (call && call.type === "video" && call.state !== 'ended') {
 | 
				
			||||||
            this.getVideoView().getLocalVideoElement().style.display = "initial";
 | 
					            // if this call is a conf call, don't display local video as the
 | 
				
			||||||
 | 
					            // conference will have us in it
 | 
				
			||||||
 | 
					            this.getVideoView().getLocalVideoElement().style.display = (
 | 
				
			||||||
 | 
					                call.confUserId ? "none" : "initial"
 | 
				
			||||||
 | 
					            );
 | 
				
			||||||
            this.getVideoView().getRemoteVideoElement().style.display = "initial";
 | 
					            this.getVideoView().getRemoteVideoElement().style.display = "initial";
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        else {
 | 
					        else {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user