X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=0662fe840d78f059bd35ad5309ede2669a0de99c;hb=a2bd587aebc0104db71f9404aadeec72c9141102;hp=f12290d7b6f8b22c22505b93be06fee64300ac2d;hpb=6d96353679db2c1e10a380524b6c60c363d81216;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index f12290d7..0662fe84 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -458,9 +458,11 @@ export default { case "connect": if (!this.people[data.from]) { this.people[data.from] = { focus: true }; - this.$forceUpdate(); //TODO: shouldn't be required 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":