diff --git a/rust-sdk/Cargo.toml b/rust-sdk/Cargo.toml index c1c1d6b6a5..b0702e9955 100644 --- a/rust-sdk/Cargo.toml +++ b/rust-sdk/Cargo.toml @@ -9,14 +9,14 @@ crate-type = ["cdylib", "lib"] name = "matrix_crypto" [dependencies] -serde = "1.0.64" +serde = "1.0.126" serde_json = "1.0.64" http = "0.2.4" -thiserror = "1.0.24" -tracing = "0.1.25" -tracing-subscriber = "0.2.17" -uniffi = "0.8.0" +thiserror = "1.0.25" +tracing = "0.1.26" +tracing-subscriber = "0.2.18" +uniffi = "0.9.0" [dependencies.js_int] version = "0.2.0" @@ -24,17 +24,17 @@ features = ["lax_deserialize"] [dependencies.matrix-sdk-common] git = "https://github.com/matrix-org/matrix-rust-sdk/" -branch = "encryption-info-v2" +rev = "e058191b992f261a1a848b7ec521badf173881d6" [dependencies.matrix-sdk-crypto] git = "https://github.com/matrix-org/matrix-rust-sdk/" -branch = "encryption-info-v2" +rev = "e058191b992f261a1a848b7ec521badf173881d6" features = ["sled_cryptostore"] [dependencies.tokio] -version = "1.4.0" +version = "1.6.0" default_features = false features = ["rt-multi-thread"] [build-dependencies] -uniffi_build = "0.8.0" +uniffi_build = "0.9.0" diff --git a/rust-sdk/src/machine.rs b/rust-sdk/src/machine.rs index 7e67befe05..e9ac6d3614 100644 --- a/rust-sdk/src/machine.rs +++ b/rust-sdk/src/machine.rs @@ -386,7 +386,7 @@ impl OlmMachine { let room_id = RoomId::try_from(room_id)?; let content: Box = serde_json::from_str(content)?; - let content = AnyMessageEventContent::from_parts(event_type, content)?; + let content = AnyMessageEventContent::from_parts(event_type, &content)?; let encrypted_content = self .runtime .block_on(self.inner.encrypt(&room_id, content))