expose AccountSubs

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-07-07 17:50:37 -04:00
parent 1100e28233
commit 497c102af1
2 changed files with 9 additions and 5 deletions

View File

@@ -312,6 +312,10 @@ impl Accounts {
create_wakeup(ctx),
);
}
pub fn get_subs(&self) -> &AccountSubs {
&self.subs
}
}
enum AccType<'a> {
@@ -421,14 +425,14 @@ pub struct AddAccountResponse {
pub unk_id_action: SingleUnkIdAction,
}
pub(super) struct AccountSubs {
pub struct AccountSubs {
relay: UnifiedSubscription,
mute: UnifiedSubscription,
contacts: UnifiedSubscription,
pub contacts: UnifiedSubscription,
}
impl AccountSubs {
pub fn new(
pub(super) fn new(
ndb: &mut Ndb,
pool: &mut RelayPool,
relay_defaults: &RelayDefaults,
@@ -448,7 +452,7 @@ impl AccountSubs {
}
}
pub fn swap_to(
pub(super) fn swap_to(
&mut self,
ndb: &mut Ndb,
pool: &mut RelayPool,

View File

@@ -33,7 +33,7 @@ mod user_account;
mod wallet;
mod zaps;
pub use account::accounts::{AccountData, Accounts};
pub use account::accounts::{AccountData, AccountSubs, Accounts};
pub use account::contacts::{ContactState, IsFollowing};
pub use account::relay::RelayAction;
pub use account::FALLBACK_PUBKEY;