wip
Some checks failed
Rust / build (ubuntu-latest, stable) (push) Failing after 1m27s
Rust / build (ubuntu-latest, stable) (pull_request) Failing after 1m33s

This commit is contained in:
2026-01-21 12:04:23 +07:00
parent 311af51bee
commit dd6b93bd79
5 changed files with 139 additions and 22 deletions

View File

@@ -20,6 +20,9 @@ pub struct Identity {
/// The public key of the account
pub public_key: Option<PublicKey>,
/// Whether the identity is owned by the user
pub owned: bool,
/// Status of the current user NIP-65 relays
relay_list: RelayState,
@@ -37,6 +40,7 @@ impl Identity {
pub fn new() -> Self {
Self {
public_key: None,
owned: false,
relay_list: RelayState::default(),
messaging_relays: RelayState::default(),
}
@@ -83,4 +87,9 @@ impl Identity {
pub fn unset_public_key(&mut self) {
self.public_key = None;
}
/// Sets whether the identity is owned by the user.
pub fn set_owned(&mut self, owned: bool) {
self.owned = owned;
}
}