wip
Some checks failed
Rust / build (ubuntu-latest, stable) (push) Failing after 1m27s
Rust / build (ubuntu-latest, stable) (pull_request) Failing after 1m33s
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user