mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 21:52:30 -04:00
sdk: add documentation on Backups::utd_event_handler
This commit is contained in:
committed by
Richard van der Hoff
parent
0b9daa2702
commit
2b5d2e97c0
@@ -878,6 +878,13 @@ impl Backups {
|
||||
}
|
||||
}
|
||||
|
||||
/// Handle UTD events by triggering download from key backup.
|
||||
///
|
||||
/// This function is registered as an event handler; it exists to deal
|
||||
/// with cases where [`Room::decrypt_event`] is not called and instead the
|
||||
/// event should be decrypted by the time this crate sees the event, such as
|
||||
/// for events received via `/sync` (as opposed to via `/messages`,
|
||||
/// `/context`, etc.)
|
||||
#[allow(clippy::unused_async)] // Because it's used as an event handler, which must be async.
|
||||
pub(crate) async fn utd_event_handler(
|
||||
event: SyncRoomEncryptedEvent,
|
||||
|
||||
Reference in New Issue
Block a user