X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=7d7f234f7cc79dec43599e7ae12a1e7d25a075a6;hp=ebb4675368f90060e17155bd96af56fcfde805ff;hb=4258b58c6aff86ce69ebfbcd40d704836df27ac9;hpb=0b4bca844aa20cb88531cd25bc0140a569f03947 diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index ebb46753..7d7f234f 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 == 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") } ); } }