The client can now be updated by the server by new users
This commit is contained in:
parent
124867967c
commit
a10e14f9d1
|
@ -359,6 +359,22 @@ function connect(profile, connection_id)
|
|||
// Switch to this chat
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue