Upgrade method

This commit is contained in:
Pierre HUBERT 2020-04-11 14:28:37 +02:00
parent c840193007
commit fd95411045

View File

@ -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!")