Skip to content

Commit

Permalink
Merge pull request #57 from EcoloSweet/reexport-state
Browse files Browse the repository at this point in the history
Reexport States and uuid() function
  • Loading branch information
gferon authored Jun 2, 2022
2 parents 021ed1d + 0c6dae1 commit 2588e83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ pub use config::sled::SledConfigStore;

pub use config::ConfigStore;
pub use errors::Error;
pub use manager::{Manager, RegistrationOptions};
pub use manager::{
Confirmation, Linking, Manager, New, Registered, Registration, RegistrationOptions,
};

#[deprecated(note = "Please help use improve the prelude module instead")]
pub use libsignal_service;
Expand Down
5 changes: 5 additions & 0 deletions src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,11 @@ where
Ok(())
}

/// Get the profile uuid
pub fn uuid(&self) -> Uuid {
self.state.uuid
}

/// Fetches basic information on the registered device.
pub async fn whoami(&self) -> Result<WhoAmIResponse, Error> {
Ok(self.push_service()?.whoami().await?)
Expand Down

0 comments on commit 2588e83

Please sign in to comment.