@@ -312,6 +312,10 @@ impl Accounts {
|
|||||||
create_wakeup(ctx),
|
create_wakeup(ctx),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn get_subs(&self) -> &AccountSubs {
|
||||||
|
&self.subs
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum AccType<'a> {
|
enum AccType<'a> {
|
||||||
@@ -421,14 +425,14 @@ pub struct AddAccountResponse {
|
|||||||
pub unk_id_action: SingleUnkIdAction,
|
pub unk_id_action: SingleUnkIdAction,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) struct AccountSubs {
|
pub struct AccountSubs {
|
||||||
relay: UnifiedSubscription,
|
relay: UnifiedSubscription,
|
||||||
mute: UnifiedSubscription,
|
mute: UnifiedSubscription,
|
||||||
contacts: UnifiedSubscription,
|
pub contacts: UnifiedSubscription,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AccountSubs {
|
impl AccountSubs {
|
||||||
pub fn new(
|
pub(super) fn new(
|
||||||
ndb: &mut Ndb,
|
ndb: &mut Ndb,
|
||||||
pool: &mut RelayPool,
|
pool: &mut RelayPool,
|
||||||
relay_defaults: &RelayDefaults,
|
relay_defaults: &RelayDefaults,
|
||||||
@@ -448,7 +452,7 @@ impl AccountSubs {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn swap_to(
|
pub(super) fn swap_to(
|
||||||
&mut self,
|
&mut self,
|
||||||
ndb: &mut Ndb,
|
ndb: &mut Ndb,
|
||||||
pool: &mut RelayPool,
|
pool: &mut RelayPool,
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ mod user_account;
|
|||||||
mod wallet;
|
mod wallet;
|
||||||
mod zaps;
|
mod zaps;
|
||||||
|
|
||||||
pub use account::accounts::{AccountData, Accounts};
|
pub use account::accounts::{AccountData, AccountSubs, Accounts};
|
||||||
pub use account::contacts::{ContactState, IsFollowing};
|
pub use account::contacts::{ContactState, IsFollowing};
|
||||||
pub use account::relay::RelayAction;
|
pub use account::relay::RelayAction;
|
||||||
pub use account::FALLBACK_PUBKEY;
|
pub use account::FALLBACK_PUBKEY;
|
||||||
|
|||||||
Reference in New Issue
Block a user