mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Upgrade method
This commit is contained in:
		@@ -102,8 +102,8 @@ class CallWindow extends CustomEvents {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			// Apply this list of user
 | 
								// Apply this list of user
 | 
				
			||||||
			for(const user of currMembersList)
 | 
								for(const user of currMembersList)
 | 
				
			||||||
				if(user != userID())
 | 
									if(user.userID != userID())
 | 
				
			||||||
					await this.AddMember(user)
 | 
										await this.AddMember(user.userID)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		} catch(e) {
 | 
							} catch(e) {
 | 
				
			||||||
			console.error(e)
 | 
								console.error(e)
 | 
				
			||||||
@@ -329,7 +329,8 @@ class CallWindow extends CustomEvents {
 | 
				
			|||||||
	NewSignal(peerID, data) {
 | 
						NewSignal(peerID, data) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if(peerID == userID())
 | 
							if(peerID == userID())
 | 
				
			||||||
			this.mainPeer.signal(data)
 | 
								if(this.mainPeer)
 | 
				
			||||||
 | 
									this.mainPeer.signal(data)
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
			console.error("Unsupported type of signal!")
 | 
								console.error("Unsupported type of signal!")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user