fix issues with incorrect user displaying
All checks were successful
Build and Test / minecraft-wiiu (push) Successful in 5m15s
Build and Test / super-mario-maker (push) Successful in 5m15s
Build and Test / friends (push) Successful in 5m15s
Build and Test / wii-u-chat (push) Successful in 4m32s
Build and Test / wii-sports-club (push) Successful in 4m43s
Build and Test / splatoon-testfire (push) Successful in 4m44s
Build and Test / splatoon (push) Successful in 4m46s
Build and Test / puyopuyo (push) Successful in 4m54s
Build and Test / mario-tennis (push) Successful in 4m54s
Build and Test / sonic-transformed (push) Successful in 4m55s
Build and Test / fast-racing-neo (push) Successful in 4m53s

This commit is contained in:
Maple Nebel 2026-07-08 04:22:05 +02:00
commit a2804a5385
2 changed files with 16 additions and 2 deletions

View file

@ -837,6 +837,20 @@ impl FriendsWiiU for FriendsUser {
let users = self.fm.users.read().await;
if let Some(user) = users.get(&friend).and_then(|v| v.upgrade()) {
let mut fr = fr.clone();
let Ok(query) = query!(
"select * from nintendo_network_accounts where pid = $1",
self.pid
)
.fetch_one(get_db())
.await
else {
println!("failed to acquire account info after adding friend");
return Err(ErrorCode::FPD_InvalidMessageID);
};
fr.basic_info = basic_principal_from_record!(query);
user.remote
.process_nintendo_notification_event_2(NintendoNotificationEvent {
event_type: 27,

View file

@ -102,7 +102,7 @@ pub struct FriendInfo {
pub unk: u64,
}
#[derive(RmcSerialize, Debug)]
#[derive(RmcSerialize, Debug, Clone)]
#[rmc_struct(0)]
pub struct FriendRequestMessage {
#[extends]
@ -118,7 +118,7 @@ pub struct FriendRequestMessage {
pub expires_on: KerberosDateTime,
}
#[derive(RmcSerialize, Debug)]
#[derive(RmcSerialize, Debug, Clone)]
#[rmc_struct(0)]
pub struct FriendRequest {
#[extends]