projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update TODO
[vchess.git]
/
client
/
src
/
views
/
Game.vue
diff --git
a/client/src/views/Game.vue
b/client/src/views/Game.vue
index
5c4630b
..
214f819
100644
(file)
--- 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 ?
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;
return true;
+ }
// Try to find a match in people:
return (
(
// Try to find a match in people:
return (
(