Skip to content

Commit 74b79d8

Browse files
Michael-Hollisterpoljar
authored andcommitted
ffi: Added dehydrated flag to Device
Signed-off-by: Michael Hollister <[email protected]>
1 parent 121dede commit 74b79d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bindings/matrix-sdk-crypto-ffi/src/device.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ pub struct Device {
2828
/// The first time this device was seen in local timestamp, milliseconds
2929
/// since epoch.
3030
pub first_time_seen_ts: u64,
31+
/// Whether or not the device is a dehydrated device.
32+
pub dehydrated: bool,
3133
}
3234

3335
impl From<InnerDevice> for Device {
@@ -42,6 +44,7 @@ impl From<InnerDevice> for Device {
4244
locally_trusted: d.is_locally_trusted(),
4345
cross_signing_trusted: d.is_cross_signing_trusted(),
4446
first_time_seen_ts: d.first_time_seen_ts().0.into(),
47+
dehydrated: d.is_dehydrated(),
4548
}
4649
}
4750
}

0 commit comments

Comments
 (0)