diff --git a/bindings/matrix-sdk-crypto-ffi/src/dehydrated_devices.rs b/bindings/matrix-sdk-crypto-ffi/src/dehydrated_devices.rs index d774b13f5db..0fc8af94a3c 100644 --- a/bindings/matrix-sdk-crypto-ffi/src/dehydrated_devices.rs +++ b/bindings/matrix-sdk-crypto-ffi/src/dehydrated_devices.rs @@ -17,7 +17,9 @@ use crate::{CryptoStoreError, DehydratedDeviceKey}; #[uniffi(flat_error)] pub enum DehydrationError { #[error(transparent)] - Pickle(#[from] matrix_sdk_crypto::vodozemac::LibolmPickleError), + Pickle(#[from] matrix_sdk_crypto::vodozemac::DehydratedDeviceError), + #[error(transparent)] + LegacyPickle(#[from] matrix_sdk_crypto::vodozemac::LibolmPickleError), #[error(transparent)] MissingSigningKey(#[from] matrix_sdk_crypto::SignatureError), #[error(transparent)] @@ -35,6 +37,9 @@ impl From for Dehydrati match value { matrix_sdk_crypto::dehydrated_devices::DehydrationError::Json(e) => Self::Json(e), matrix_sdk_crypto::dehydrated_devices::DehydrationError::Pickle(e) => Self::Pickle(e), + matrix_sdk_crypto::dehydrated_devices::DehydrationError::LegacyPickle(e) => { + Self::LegacyPickle(e) + } matrix_sdk_crypto::dehydrated_devices::DehydrationError::MissingSigningKey(e) => { Self::MissingSigningKey(e) }