X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=0662fe840d78f059bd35ad5309ede2669a0de99c;hb=a2bd587aebc0104db71f9404aadeec72c9141102;hp=f1521e679f6f9acea48d4133adc774bc7b9b09fd;hpb=ca6fae20191190bd6b8234b56963aa45652693e4;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index f1521e67..0662fe84 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -456,19 +456,19 @@ export default { }); break; case "connect": - console.log("connect " + data.from + " " + !!this.people[data.from]); if (!this.people[data.from]) { this.people[data.from] = { focus: true }; this.newConnect[data.from] = true; //for self multi-connects tests this.send("askidentity", { target: data.from }); + } else if (!this.people[data.from].focus) { + this.people[data.from].focus = true; + this.$forceUpdate(); //TODO: shouldn't be required } break; case "disconnect": - console.log("disconnect " + data.from); this.$delete(this.people, data.from); break; case "getfocus": { - console.log("get focus " + data.from + " " + !!this.people[data.from]); let player = this.people[data.from]; if (!!player) { player.focus = true; @@ -477,7 +477,6 @@ export default { break; } case "losefocus": { - console.log("lose focus " + data.from + " " + !!this.people[data.from]); let player = this.people[data.from]; if (!!player) { player.focus = false; @@ -526,6 +525,7 @@ export default { if (!this.killed[this.st.user.sid]) { // Ask potentially missed last state, if opponent and I play if ( + !this.gotLastate && !!this.game.mycolor && this.game.type == "live" && this.game.score == "*" &&