X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=0ed355bf5cdae241da3c81b1d397c6c2081a6a14;hb=bfa7d9931b50c1ed54ff3c6d4ef5bc423f26de94;hp=ab5108e5d159a29e37739f0c3e23c37adfed0f76;hpb=5a187b07e221493931cf089bf85ef6db41d8b775;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index ab5108e5..0ed355bf 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -927,6 +927,15 @@ export default { .getElementById("btnC" + newChall.type) .classList.add("somethingnew"); } + if (!!chall.to) { + 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...") } + ); + } } }, loadNewchallVariant: async function(cb) {