mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-07 07:27:45 -04:00
base: Log deserialization errors for decrypted events.
This commit is contained in:
@@ -49,7 +49,7 @@ use matrix_sdk_crypto::{
|
||||
Device, EncryptionSettings, IncomingResponse, OlmError, OlmMachine, OutgoingRequest, Sas,
|
||||
ToDeviceRequest, UserDevices,
|
||||
};
|
||||
use tracing::info;
|
||||
use tracing::{info, warn};
|
||||
use zeroize::Zeroizing;
|
||||
|
||||
use crate::{
|
||||
@@ -481,8 +481,11 @@ impl BaseClient {
|
||||
if let Ok(decrypted) =
|
||||
olm.decrypt_room_event(encrypted, room_id).await
|
||||
{
|
||||
if let Ok(decrypted) = decrypted.deserialize() {
|
||||
e = decrypted;
|
||||
match decrypted.deserialize() {
|
||||
Ok(decrypted) => e = decrypted,
|
||||
Err(e) => {
|
||||
warn!("Error deserializing a decrypted event {:?} ", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user