From f1da5a1c7c606edc164100de83f6755da66ff2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 9 Nov 2021 14:10:24 +0100 Subject: [PATCH] crypto: Update to the latest ruma --- rust-sdk/Cargo.toml | 2 +- rust-sdk/src/machine.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rust-sdk/Cargo.toml b/rust-sdk/Cargo.toml index 566baa71cb..572df5452e 100644 --- a/rust-sdk/Cargo.toml +++ b/rust-sdk/Cargo.toml @@ -45,7 +45,7 @@ features = ["rt-multi-thread"] [dependencies.ruma] git = "https://github.com/ruma/ruma" -rev = "0101e110f" +rev = "ac6ecc3e5" features = ["client-api-c"] [build-dependencies] diff --git a/rust-sdk/src/machine.rs b/rust-sdk/src/machine.rs index 6b1e5b44c1..272d675779 100644 --- a/rust-sdk/src/machine.rs +++ b/rust-sdk/src/machine.rs @@ -21,7 +21,7 @@ use ruma::{ IncomingResponse, }, events::{ - key::verification::VerificationMethod, room::encrypted::EncryptedEventContent, + key::verification::VerificationMethod, room::encrypted::RoomEncryptedEventContent, AnyMessageEventContent, EventContent, SyncMessageEvent, }, DeviceKeyAlgorithm, EventId, RoomId, UserId, @@ -527,7 +527,7 @@ impl OlmMachine { content: &'a RawValue, } - let event: SyncMessageEvent = serde_json::from_str(event)?; + let event: SyncMessageEvent = serde_json::from_str(event)?; let room_id = RoomId::try_from(room_id)?; let decrypted = self @@ -570,7 +570,7 @@ impl OlmMachine { event: &str, room_id: &str, ) -> Result { - let event: SyncMessageEvent = serde_json::from_str(event)?; + let event: SyncMessageEvent = serde_json::from_str(event)?; let room_id = RoomId::try_from(room_id)?; let (cancel, request) = self