Skip to content

Commit

Permalink
Add ServiceAddress::pni
Browse files Browse the repository at this point in the history
  • Loading branch information
rubdos committed Jan 5, 2024
1 parent 08ab698 commit 5e6b40c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libsignal-service/src/service_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ impl ServiceAddress {
pub fn aci(&self) -> libsignal_protocol::Aci {
libsignal_protocol::Aci::from_uuid_bytes(self.uuid.into_bytes())
}

pub fn pni(&self) -> libsignal_protocol::Pni {
libsignal_protocol::Pni::from_uuid_bytes(self.uuid.into_bytes())
}
}

impl From<Uuid> for ServiceAddress {
Expand Down

0 comments on commit 5e6b40c

Please sign in to comment.