refactor(timeline): Don't request redecryptions in the timeline

This commit is contained in:
Damir Jelić
2025-12-17 09:34:23 +01:00
parent c6fb3c25f3
commit 282a2bc8ef

View File

@@ -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.
}
}
}