mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 13:59:23 +00:00
Upgrade method
This commit is contained in:
parent
c840193007
commit
fd95411045
@ -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!")
|
||||||
|
Loading…
Reference in New Issue
Block a user