X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=214f81964582264d6c57ad072bc1241df2bd1146;hp=5c4630b018a71dced0340e3996df9a4bb2a885ad;hb=3fff2bd5cd782a5c5f64a015f9bba2f16ff5b946;hpb=0cc44e583fd266eab65f1c9cb0fd79d07d99d319 diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 5c4630b0..214f8196 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -232,8 +232,12 @@ export default { isConnected: function(index) { const player = this.game.players[index]; // Is it me ? - if (this.st.user.sid == player.sid || this.st.user.id == player.uid) + if ( + (this.st.user.sid == player.sid || this.st.user.id == player.uid) && + (!this.st.user.name || this.st.user.name == player.name) + ) { return true; + } // Try to find a match in people: return ( (