From 51e7c63d667e80ee596b1dfab13c2303edcd4167 Mon Sep 17 00:00:00 2001 From: Maple Date: Sat, 25 Apr 2026 17:24:28 +0200 Subject: [PATCH] add delete persistent notif --- rnex-core/src/nex/friends_handler.rs | 9 ++++++++- rnex-core/src/rmc/protocols/friends.rs | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/rnex-core/src/nex/friends_handler.rs b/rnex-core/src/nex/friends_handler.rs index 1a0b499..88190b2 100644 --- a/rnex-core/src/nex/friends_handler.rs +++ b/rnex-core/src/nex/friends_handler.rs @@ -99,7 +99,7 @@ pub fn friend_info_from_user(data: &UserData) -> FriendInfo { presence: data.presence.clone(), comment: Comment { unk: 0, - message: "litterally everyone is friends here =w=".to_string(), + message: "haii =w=".to_string(), last_changed: KerberosDateTime::now(), }, became_friends: KerberosDateTime::now(), @@ -276,6 +276,13 @@ impl Friends for FriendsUser { Ok(()) } + async fn delete_persistent_notification( + &self, + notifs: Vec, + ) -> Result<(), ErrorCode> { + Ok(()) + } + async fn check_setting_status(&self) -> Result { Ok(0xFF) } diff --git a/rnex-core/src/rmc/protocols/friends.rs b/rnex-core/src/rmc/protocols/friends.rs index fb179ce..b575c08 100644 --- a/rnex-core/src/rmc/protocols/friends.rs +++ b/rnex-core/src/rmc/protocols/friends.rs @@ -2,6 +2,8 @@ use macros::{RmcSerialize, method_id, rmc_proto}; use rnex_core::{kerberos::KerberosDateTime, rmc::response::ErrorCode}; +use crate::rmc::structures::rmc_struct; + #[derive(RmcSerialize, Debug, Clone)] #[rmc_struct(0)] pub struct MiiV2 { @@ -145,6 +147,11 @@ pub trait Friends { >; #[method_id(13)] async fn update_presence(&self, presence: NintendoPresenceV2) -> Result<(), ErrorCode>; + #[method_id(18)] + async fn delete_persistent_notification( + &self, + notifs: Vec, + ) -> Result<(), ErrorCode>; #[method_id(19)] async fn check_setting_status(&self) -> Result; }