move up sending identify
This commit is contained in:
parent
e316372631
commit
d846ce9948
|
@ -45,16 +45,16 @@ impl Instance {
|
|||
.token;
|
||||
user.set_token(&token);
|
||||
|
||||
let mut identify = GatewayIdentifyPayload::common();
|
||||
identify.token = user.token();
|
||||
user.gateway.send_identify(identify).await;
|
||||
|
||||
let object = User::get(&mut user, None).await?;
|
||||
let settings = User::get_settings(&mut user).await?;
|
||||
|
||||
*user.object.write().unwrap() = object;
|
||||
*user.settings.write().unwrap() = settings;
|
||||
|
||||
let mut identify = GatewayIdentifyPayload::common();
|
||||
identify.token = user.token();
|
||||
user.gateway.send_identify(identify).await;
|
||||
|
||||
Ok(user)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue