Add FIXME comment

This commit is contained in:
Valere
2024-05-07 10:20:08 +02:00
parent 149606e148
commit f4772c9b0e

View File

@@ -314,6 +314,10 @@ impl OlmMachine {
}
};
// FIXME: This is a workaround due to `regenerate_olm` that was clearing backup
// state. Backups shouldn't be automatically enabled.
// The OlmMachine doesn't get enough info from the homeserver for this to work
// reliably. I don't belong here.
let saved_keys = store.load_backup_keys().await?;
let maybe_backup_key = saved_keys.decryption_key.and_then(|k| {
if let Some(version) = saved_keys.backup_version {