The client can now be updated by the server by new users

This commit is contained in:
jsrobson10 2019-04-12 18:14:40 +10:00
parent 124867967c
commit a10e14f9d1
1 changed files with 16 additions and 0 deletions

View File

@ -359,6 +359,22 @@ function connect(profile, connection_id)
// Switch to this chat // Switch to this chat
profile_switch_to(connection_id); profile_switch_to(connection_id);
} }
// New user
if(data.mode == "new_user")
{
console.log("User signed up")
// Set the data
g.users[data.user] = data.data;
// Is this screen active
if(active_profile == connection_id)
{
// Refresh this profile
profile_switch_to(connection_id);
}
}
} }
}); });
}); });