We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Backups::utd_event_handler
1 parent 0b9daa2 commit 2b5d2e9Copy full SHA for 2b5d2e9
crates/matrix-sdk/src/encryption/backups/mod.rs
@@ -878,6 +878,13 @@ impl Backups {
878
}
879
880
881
+ /// Handle UTD events by triggering download from key backup.
882
+ ///
883
+ /// This function is registered as an event handler; it exists to deal
884
+ /// with cases where [`Room::decrypt_event`] is not called and instead the
885
+ /// event should be decrypted by the time this crate sees the event, such as
886
+ /// for events received via `/sync` (as opposed to via `/messages`,
887
+ /// `/context`, etc.)
888
#[allow(clippy::unused_async)] // Because it's used as an event handler, which must be async.
889
pub(crate) async fn utd_event_handler(
890
event: SyncRoomEncryptedEvent,
0 commit comments