X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=e5b45ecda2a896f474ea1d7a942c948e97e64788;hp=317185542c194b1a8be4b0072636e885f5bc9a1d;hb=0d5335de5c94d780e03ac0aa3279b731c69455cc;hpb=58bf4670c6bf01d94fe1f798cd5d63493d15e196 diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 31718554..e5b45ecd 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -474,10 +474,12 @@ export default { // TODO: shuffling and random filtering on server, // if the room is really crowded. Object.keys(data.sockIds).forEach(sid => { - // TODO: test sid != user.sid was already done on server if (sid != this.st.user.sid) { - this.people[sid] = { tmpIds: data.sockIds[sid] }; this.send("askidentity", { target: sid }); + this.people[sid] = { tmpIds: data.sockIds[sid] }; + } else { + // Complete my tmpIds: + Object.assign(this.people[sid].tmpIds, data.sockIds[sid]); } }); break;