atagen

macltok

public
Star0
Watch0

Commit 5b7fee555710

tarball

atagen <boss@atagen.co>2026-10-26 05:03 UTC

1 file changed+1-1
account: fetch backed-up room keys only when a decryption fails

OneShot downloads the whole backup in one response the moment a verification or a recovery hands over its key, then decrypts every key in a loop that never yields, which on the wasm worker's single thread stalls every timeline until it ends. That fits malice's report of all rooms dying after SAS until a reload. The sdk's own comment says it doesn't work for any sizeable account.
Modified file: src/account.rs+1 additions−1 deletions
@@ -999,7 +999,7 @@ pub(crate) fn session_record(client: &Client) -> Result<SessionRecord, AccountEr
999999 fn encryption_settings() -> EncryptionSettings {
10001000 EncryptionSettings {
10011001 auto_enable_cross_signing: true,
1002- backup_download_strategy: BackupDownloadStrategy::OneShot,
1002+ backup_download_strategy: BackupDownloadStrategy::AfterDecryptionFailure,
10031003 auto_enable_backups: true,
10041004 }
10051005 }