X-Git-Url: https://git.auder.net/game/current/gitweb.js?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=4708bcfc40ea8ff8e5eeaaace4107dec25d81b73;hb=7f9a01c07ec7e0aa55854d8cefafb1c94fbff6f3;hp=ebb4675368f90060e17155bd96af56fcfde805ff;hpb=4a2093139089632727de4f510127ef186cab528e;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index ebb46753..4708bcfc 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -873,6 +873,10 @@ export default { let newGame = game; newGame.type = this.classifyObject(game); newGame.vname = this.getVname(game.vid); + + +console.log(newGame.vname); +console.log(game.vid); if (!game.score) // New game from Hall newGame.score = "*"; @@ -982,13 +986,13 @@ export default { .getElementById("btnC" + newChall.type) .classList.add("somethingnew"); } - if (!!chall.to) { + if (!!chall.to && chall.to == this.st.user.name) { notify( "New challenge", // fromValues.name should exist since the player is online, but // let's consider there is some chance that the challenge arrives // right after we connected and before receiving the poll result: - { body: "from " + (fromValues.name || "unknown yet...") } + { body: "from " + (fromValues.name || "@nonymous") } ); } }