mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-11 01:13:14 -04:00
crypto: Add getters for the user and device id in the account.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user