X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=01f588f23dacc8acbe6abe9318df2a431b810640;hp=133a5f9e9ced98cc58dd59bd69292faa88260556;hb=6c7cbfedc6ecf2b49f6b1e27a174039e92a36365;hpb=5246b49d18b711fb26ee27919ab392be24b80fba diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 133a5f9e..01f588f2 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -822,12 +822,13 @@ export default { // Ignore games where I play (will go in MyGames page), // and also games that I already received. if ( + this.games.findIndex(g => g.id == game.id) == -1 && game.players.every(p => { return ( p.sid != this.st.user.sid && (p.id == 0 || p.id != this.st.user.id) ); - }) && this.games.findIndex(g => g.id == game.id) == -1 + }) ) { let newGame = game; newGame.type = this.classifyObject(game); @@ -837,6 +838,7 @@ export default { newGame.score = "*"; this.games.push(newGame); if ( + newGame.score == '*' && (newGame.type == "live" && this.gdisplay == "corr") || (newGame.type == "corr" && this.gdisplay == "live") ) { @@ -888,7 +890,8 @@ export default { if ( this.cursor == Number.MAX_SAFE_INTEGER && this.games.length == 0 && - this.gdisplay == "live" + this.gdisplay == "live" && + res.games.some(g => g.score == '*') ) { // First loading: show indicators document