mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2025-12-24 00:01:03 -05:00
refactor(timeline): Don't request redecryptions in the timeline
This commit is contained in:
@@ -92,10 +92,10 @@ async fn redecryption_report_task(timeline_controller: TimelineController) {
|
||||
}
|
||||
}
|
||||
Ok(RedecryptorReport::Lagging | RedecryptorReport::BackupAvailable) | Err(_) => {
|
||||
// The room key stream lagged, the OlmMachine got regenerated or we got access
|
||||
// to a backup. Let's tell the redecryptor to attempt
|
||||
// redecryption of our timeline items.
|
||||
timeline_controller.retry_event_decryption(None).await;
|
||||
// Since the event cache keeps all the events we are keeping
|
||||
// cached in the timeline in memory as well,
|
||||
// R2D2 will handle the redecryption of these events when any of
|
||||
// those reports come in.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user