Skip to content

Commit

Permalink
feat(utd_hook): Report historical expected UTD with new reason
Browse files Browse the repository at this point in the history
This PR introduces a new variant to `UtdCause` specifically for device-historical messages (`HistoricalMessage`). These messages cannot be decrypted if key storage is inaccessible. Applications can leverage this new variant to provide more informative error messages to users.
  • Loading branch information
BillCarsonFr committed Nov 27, 2024
1 parent 7a45488 commit a0c86d9
Show file tree
Hide file tree
Showing 7 changed files with 346 additions and 49 deletions.
2 changes: 1 addition & 1 deletion crates/matrix-sdk-crypto/src/types/events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mod utd_cause;

use ruma::serde::Raw;
pub use to_device::{ToDeviceCustomEvent, ToDeviceEvent, ToDeviceEvents};
pub use utd_cause::UtdCause;
pub use utd_cause::{CryptoContextInfo, UtdCause};

/// A trait for event contents to define their event type.
pub trait EventType {
Expand Down
Loading

0 comments on commit a0c86d9

Please sign in to comment.