move up sending identify

This commit is contained in:
bitfl0wer 2024-08-26 18:19:02 +02:00
parent e316372631
commit d846ce9948
No known key found for this signature in database
GPG Key ID: 8D90CA11485CD14D
1 changed files with 4 additions and 4 deletions

View File

@ -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)
}
}