crypto: Add getters for the user and device id in the account.
This commit is contained in:
parent
7c92d91c04
commit
4fa58bfaac
1 changed files with 10 additions and 0 deletions
|
@ -93,6 +93,16 @@ impl Account {
|
|||
}
|
||||
}
|
||||
|
||||
/// Get the user id of the owner of the account.
|
||||
pub fn user_id(&self) -> &UserId {
|
||||
&self.user_id
|
||||
}
|
||||
|
||||
/// Get the device id that owns this account.
|
||||
pub fn device_id(&self) -> &DeviceId {
|
||||
&self.device_id
|
||||
}
|
||||
|
||||
/// Get the public parts of the identity keys for the account.
|
||||
pub fn identity_keys(&self) -> &IdentityKeys {
|
||||
&self.identity_keys
|
||||
|
|
Loading…
Reference in a new issue