X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=c91e1270c1f0e8e4858e47f738a47c5cbb72778c;hb=ded43c88fad60fd8f9bb46aabd67f3f2092f65f3;hp=ebb4675368f90060e17155bd96af56fcfde805ff;hpb=4a2093139089632727de4f510127ef186cab528e;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index ebb46753..c91e1270 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -982,13 +982,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") } ); } }