Commit 7bd6f1cc authored by maybites's avatar maybites
Browse files

readded slot update

parent 6e949e65
...@@ -118,8 +118,19 @@ function done() ...@@ -118,8 +118,19 @@ function done()
} }
} }
} }
// update Slots with new peer
slots.forEach(update);
} }
function update(_peerID, _index) {
var localPeer = myPeerList.get(_peerID);
if(localPeer.get("verified") === 1){
messnamed("pl_" + _peerID, "slot", _index);
}
}
function createPeer(_peerID){ function createPeer(_peerID){
slots.push(_peerID); slots.push(_peerID);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment