From fd95411045a5a038e249b535ed9e0dab2260bd57 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 11 Apr 2020 14:28:37 +0200 Subject: [PATCH] Upgrade method --- assets/js/components/calls/window.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/js/components/calls/window.js b/assets/js/components/calls/window.js index 6dc01f82..6548da3b 100644 --- a/assets/js/components/calls/window.js +++ b/assets/js/components/calls/window.js @@ -102,8 +102,8 @@ class CallWindow extends CustomEvents { // Apply this list of user for(const user of currMembersList) - if(user != userID()) - await this.AddMember(user) + if(user.userID != userID()) + await this.AddMember(user.userID) } catch(e) { console.error(e) @@ -329,7 +329,8 @@ class CallWindow extends CustomEvents { NewSignal(peerID, data) { if(peerID == userID()) - this.mainPeer.signal(data) + if(this.mainPeer) + this.mainPeer.signal(data) else console.error("Unsupported type of signal!")