crypto: Update to the latest ruma
This commit is contained in:
parent
50268540c3
commit
f1da5a1c7c
|
@ -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]
|
||||
|
|
|
@ -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<EncryptedEventContent> = serde_json::from_str(event)?;
|
||||
let event: SyncMessageEvent<RoomEncryptedEventContent> = 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<KeyRequestPair, DecryptionError> {
|
||||
let event: SyncMessageEvent<EncryptedEventContent> = serde_json::from_str(event)?;
|
||||
let event: SyncMessageEvent<RoomEncryptedEventContent> = serde_json::from_str(event)?;
|
||||
let room_id = RoomId::try_from(room_id)?;
|
||||
|
||||
let (cancel, request) = self
|
||||
|
|
Loading…
Reference in New Issue